glyph_to_cmap() becomes function instead of macro

Also adds swallow and explosion glyphs to glyph_to_cmap()

References:
https://github.com/NetHack/NetHack/pull/1022 by argrath
https://github.com/NetHack/NetHack/pull/1277 by ars3niy

Closes #1277
Closes #1022
This commit is contained in:
nhmall
2024-09-14 10:11:28 -04:00
parent 04433aead8
commit cbb32ac64a
4 changed files with 5 additions and 5 deletions

View File

@@ -221,7 +221,8 @@ glyph_to_cmap(int glyph)
else if (glyph_is_explosion(glyph))
return glyph_to_explosion(glyph) + S_expl_tl;
else
return MAXPCHARS;
return MAXPCHARS; /* MAXPCHARS is legal array index because
of trailing fencepost entry */
}
staticfn int