Fix romhack cannon camera in sm74
This commit is contained in:
parent
cea41c95e0
commit
28c3555ea8
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue