1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-18 10:38:31 +02:00

Call hardreset() when returning to menu from editor

During testing, I made a cursed level that set the flash timer to
precisely 1,000,000 frames. It turns out that if I activated the timer
in playtesting, exited playtesting, and exited the editor without ever
re-entering playtesting, the timer still kept going. So to prevent being
able to do that, we should hardreset() when exiting the editor.
This commit is contained in:
Misa 2020-04-26 19:35:41 -07:00 committed by Ethan Lee
parent edb930344a
commit 585ff51ec6

View File

@ -3451,6 +3451,7 @@ void editorlogic()
map.nexttowercolour();
map.colstate = 10;
game.gamestate = TITLEMODE;
script.hardreset();
graphics.fademode = 4;
music.haltdasmusik();
music.play(6);