|
|
@ -453,11 +453,9 @@ static void unhideFlood_internal(MapCache *MCache, const DFCoord &xy)
|
|
|
|
// Lua entrypoint for unhideFlood_internal
|
|
|
|
// Lua entrypoint for unhideFlood_internal
|
|
|
|
static void unhideFlood(DFCoord pos)
|
|
|
|
static void unhideFlood(DFCoord pos)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
CoreSuspender suspend;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MapCache MCache;
|
|
|
|
MapCache MCache;
|
|
|
|
// no bounds checking needed for pos. if it's invalid, unhideFlood_internal
|
|
|
|
// no environment or bounds checking needed. if anything is invalid,
|
|
|
|
// will just exit immeditately
|
|
|
|
// unhideFlood_internal will just exit immeditately
|
|
|
|
unhideFlood_internal(&MCache, pos);
|
|
|
|
unhideFlood_internal(&MCache, pos);
|
|
|
|
MCache.WriteAll();
|
|
|
|
MCache.WriteAll();
|
|
|
|
}
|
|
|
|
}
|
|
|
|