- [FIX] Prevent exiting the final scene with ESC

This commit is contained in:
2023-01-13 14:55:37 +01:00
parent b7e3a3c78b
commit ecb36d8483

View File

@@ -272,7 +272,7 @@ function update_scene()
end end
end end
if btnp(KEY_ESCAPE) then if btnp(KEY_ESCAPE) and (scenes.current_scene~=scenes.final) then
if scenes.current_scene[scenes.dnum].die then if scenes.current_scene[scenes.dnum].die then
game_init(true) game_init(true)
else else