DavidKinder / Inform6

The latest version of the Inform 6 compiler, used for generating interactive fiction games.
http://inform-fiction.org/
Other
199 stars 32 forks source link

Improve action-limit checking #284

Closed erkyrath closed 3 months ago

erkyrath commented 3 months ago

I screwed up the action limit check a bit in the last PR.

It's true that actions are limited by lowest_fake_action(), which is 256 in GV1 and 4096 otherwise. But in Z-code, actions are limited to 1024 even in GV2, because we need to jam the action number into a 10-bit field in the grammar table.

(In Glulx, we could jack up the lowest_fake_action() value and allow more than 4096 actions. But this seems extremely unnecessary.)