mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01: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:
parent
f9525020bb
commit
8e9970d619
1 changed files with 1 additions and 0 deletions
|
@ -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)].enemytype=0;
|
||||||
level[i+(j*maxwidth)].directmode=0;
|
level[i+(j*maxwidth)].directmode=0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue