Fix romhack cannon camera in sm74

This commit is contained in:
MysterD 2022-04-16 15:39:14 -07:00
parent cea41c95e0
commit 28c3555ea8

View file

@ -32,8 +32,17 @@ end
function on_set_camera_mode(c, mode, frames)
local m = gMarioStates[0]
if mode == CAMERA_MODE_ROM_HACK then
return true
end
if sOverrideCameraModes[mode] ~= nil then
-- 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
end