diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-12-23 03:45:41 -0500 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-12-23 03:45:41 -0500 |
commit | f6ecb681d5764632053ad5bb4f34082fff6b2022 (patch) | |
tree | 51bd63d1352a75a9870298b22776779ac9de41d3 /engine/events/engine_flags.asm | |
parent | 83ff516c8280e4c196053e347a5802375a7066f9 (diff) |
Fix issue #581 (random stuff ax6 noticed)
Diffstat (limited to 'engine/events/engine_flags.asm')
-rw-r--r-- | engine/events/engine_flags.asm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/events/engine_flags.asm b/engine/events/engine_flags.asm index 6c2148f79..4099dfda5 100644 --- a/engine/events/engine_flags.asm +++ b/engine/events/engine_flags.asm @@ -11,17 +11,17 @@ EngineFlagAction:: ; to know that the infrastructure is there. ld a, d - cp 0 + cp HIGH(NUM_ENGINE_FLAGS) jr z, .ceiling jr c, .read ; cp 0 can't set carry! jr .invalid -; There are only $a2 engine flags, so +; There are only NUM_ENGINE_FLAGS engine flags, so ; anything beyond that is invalid too. .ceiling ld a, e - cp NUM_ENGINE_FLAGS + cp LOW(NUM_ENGINE_FLAGS) jr c, .read ; Invalid flags are treated as flag 00. |