1
0
Fork 0
mirror of https://github.com/notwa/mm synced 2024-11-05 02:29:03 -08:00

fix scene flag address calculation

This commit is contained in:
Connor Olding 2018-02-06 12:00:26 +01:00
parent 0c532b8c5f
commit c627115606

View file

@ -1,5 +1,5 @@
local function scene_flag_get_bb(scene, word, bit_)
local byte = scene*0x14 + word*4 + math.floor(3 - bit_/8)
local byte = scene*0x14 + word*4 + 3 - math.floor(bit_/8)
byte = byte + addrs.scene_flags_ingame.addr
local bitmask = bit.lshift(1, bit_ % 8)
return byte, bitmask