1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-30 03:50:34 +00:00

mimics destroyed correctly in the map editor

This commit is contained in:
Zeno Rogue 2021-09-30 13:16:22 +02:00
parent 7e57852788
commit b88ec8550e
2 changed files with 3 additions and 1 deletions

View File

@ -1229,7 +1229,7 @@ EX namespace mirror {
c->wall == waMirrorWall || c->wall == waPetrifiedBridge; c->wall == waMirrorWall || c->wall == waPetrifiedBridge;
} }
void destroyKilled() { EX void destroyKilled() {
int j = 0; int j = 0;
for(int i=0; i<isize(mirrors); i++) for(int i=0; i<isize(mirrors); i++)
if(mirrors[i].second.at->monst == moMimic) if(mirrors[i].second.at->monst == moMimic)

View File

@ -1349,6 +1349,8 @@ EX namespace mapeditor {
if(isDie(c->monst)) { if(isDie(c->monst)) {
if(!dice::generate_random(c)) c->monst = moNone; if(!dice::generate_random(c)) c->monst = moNone;
} }
mirror::destroyKilled();
break; break;
} }
case 1: { case 1: {