mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-11-24 14:29:20 +03:00
Reset enemy type in editorclass::reset()
This fixes a bug where if you loaded a level, then started making a new level in the editor, the enemy types from the previous level would persist. While working on VVVVVV: Community Edition and adding a new room property for enemy speed, I noticed that enemy type was not getting reset at all. After some testing, I confirmed that this was the case. So this bug is fixed now.
This commit is contained in:
1 parent
f9525020bb
commit
8e9970d619
1 file changed
+1
@@ -314,6 +314,7 @@ void editorclass::reset()
|
||||
level[i+(j*maxwidth)].enemyy1=0;
|
||||
level[i+(j*maxwidth)].enemyx2=320;
|
||||
level[i+(j*maxwidth)].enemyy2=240;
|
||||
level[i+(j*maxwidth)].enemytype=0;
|
||||
level[i+(j*maxwidth)].directmode=0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user