From b88ec8550e181768b4d293d4122a50989f781a91 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 30 Sep 2021 13:16:22 +0200 Subject: [PATCH] mimics destroyed correctly in the map editor --- complex.cpp | 2 +- mapeditor.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/complex.cpp b/complex.cpp index e03b94bc..e9bb1ccd 100644 --- a/complex.cpp +++ b/complex.cpp @@ -1229,7 +1229,7 @@ EX namespace mirror { c->wall == waMirrorWall || c->wall == waPetrifiedBridge; } - void destroyKilled() { + EX void destroyKilled() { int j = 0; for(int i=0; imonst == moMimic) diff --git a/mapeditor.cpp b/mapeditor.cpp index 4d67b97c..c07ae776 100644 --- a/mapeditor.cpp +++ b/mapeditor.cpp @@ -1349,6 +1349,8 @@ EX namespace mapeditor { if(isDie(c->monst)) { if(!dice::generate_random(c)) c->monst = moNone; } + + mirror::destroyKilled(); break; } case 1: {