don't suspsend core for Lua entrypoint

develop
myk002 2021-06-05 14:45:09 -07:00
parent 0c44e7da67
commit 94157633a8
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 2 additions and 4 deletions

@ -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();
}