From 94157633a882a5fc9759bb6683c3bf18b8a63d7f Mon Sep 17 00:00:00 2001 From: myk002 Date: Sat, 5 Jun 2021 14:45:09 -0700 Subject: [PATCH] don't suspsend core for Lua entrypoint --- plugins/reveal.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/reveal.cpp b/plugins/reveal.cpp index c23f512b9..93e2041bd 100644 --- a/plugins/reveal.cpp +++ b/plugins/reveal.cpp @@ -453,11 +453,9 @@ static void unhideFlood_internal(MapCache *MCache, const DFCoord &xy) // Lua entrypoint for unhideFlood_internal static void unhideFlood(DFCoord pos) { - CoreSuspender suspend; - MapCache MCache; - // no bounds checking needed for pos. if it's invalid, unhideFlood_internal - // will just exit immeditately + // no environment or bounds checking needed. if anything is invalid, + // unhideFlood_internal will just exit immeditately unhideFlood_internal(&MCache, pos); MCache.WriteAll(); }