Closed heasm66 closed 5 months ago
iso_to_alphabet_grid[32]
is -32, so it returns 4. That's clearly wrong.
This should be relative pain free because it's only called from one place.
That one place is called from all over the place, so that doesn't help. :)
But your change seems like the right answer. I'll have to see how it affects -e
compiles, though.
(I note that every other place that iso_to_alphabet_grid[]
is consulted, there's a special-case check for space first.)
A space (z-char 0) has a weight of 1 according to Z-Machine Standards Document, §3.5.1. The current function returns another value (probably 2). This makes applying the abbreviations a little off.
Suggestion to change the function to something like:
This should be relative pain free because it's only called from one place.