From e032fae6f823f506029acb5edf5cb290fb9a0e28 Mon Sep 17 00:00:00 2001 From: Ilya Shurumov Date: Sat, 14 Nov 2020 03:36:51 +0600 Subject: [PATCH] - GetFirstPackedCop to check if region is not loading --- src_rebuild/GAME/C/CELL.C | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src_rebuild/GAME/C/CELL.C b/src_rebuild/GAME/C/CELL.C index 5c4a7467..0a5e99d8 100644 --- a/src_rebuild/GAME/C/CELL.C +++ b/src_rebuild/GAME/C/CELL.C @@ -90,6 +90,10 @@ PACKED_CELL_OBJECT * GetFirstPackedCop(int cellx, int cellz, CELL_ITERATOR *pci, if (NumPlayers == 2) #endif // else do this check always { + // [A] don't draw loading region + if (loading_region[index] != -1) + return NULL; + if (RoadMapRegions[index] != (cellx / MAP_REGION_SIZE) + (cellz / MAP_REGION_SIZE) * (cells_across / MAP_REGION_SIZE)) return NULL; }