Fix romhack cannon camera in sm74

This commit is contained in:
MysterD 2022-04-16 15:39:14 -07:00
parent cea41c95e0
commit 28c3555ea8
1 changed files with 9 additions and 0 deletions

View File

@ -32,8 +32,17 @@ end
function on_set_camera_mode(c, mode, frames) function on_set_camera_mode(c, mode, frames)
local m = gMarioStates[0] local m = gMarioStates[0]
if mode == CAMERA_MODE_ROM_HACK then
return true
end
if sOverrideCameraModes[mode] ~= nil then if sOverrideCameraModes[mode] ~= nil then
-- do not allow change -- do not allow change
if mode ~= CAMERA_MODE_ROM_HACK then
set_camera_mode(c, CAMERA_MODE_ROM_HACK, frames)
return false
end
return false return false
end end