1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Reset Direct Mode in editorclass::reset()

There's a long-standing issue where the Direct Mode status of the loaded
custom map in memory never resets properly. So if you load a level with
a certain layout of Direct Mode rooms, that same layout will be
preserved if you start making a new level in the editor. This commit
fixes that issue.
This commit is contained in:
Info Teddy 2020-01-19 21:46:52 -08:00
parent 916f182ce6
commit 2c2acc93e6

View file

@ -314,6 +314,7 @@ void editorclass::reset()
level[i+(j*maxwidth)].enemyy1=0; level[i+(j*maxwidth)].enemyy1=0;
level[i+(j*maxwidth)].enemyx2=320; level[i+(j*maxwidth)].enemyx2=320;
level[i+(j*maxwidth)].enemyy2=240; level[i+(j*maxwidth)].enemyy2=240;
level[i+(j*maxwidth)].directmode=0;
} }
} }