From bb7ba1580c7fc7715b91707a00ce0e9e3d092ba0 Mon Sep 17 00:00:00 2001 From: Ilya Shurumov Date: Thu, 8 Jul 2021 00:59:23 +0600 Subject: [PATCH] - more Debug info on spool --- src_rebuild/DebugOverlay.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src_rebuild/DebugOverlay.cpp b/src_rebuild/DebugOverlay.cpp index 143bae4d..754c7623 100644 --- a/src_rebuild/DebugOverlay.cpp +++ b/src_rebuild/DebugOverlay.cpp @@ -94,15 +94,19 @@ void DrawDebugOverlays() PrintString(tempBuf, 10, 20); extern volatile int spoolactive; - sprintf(tempBuf, "Spooling: %d spec: %d, active: %d", doSpooling, allowSpecSpooling, spoolactive); - PrintString(tempBuf, 10, 30); - extern int numActiveCops; extern int numCopCars; extern int numCivCars; extern int numParkedCars; extern int maxCopCars; extern int maxCivCars; + extern int current_region; + extern int LoadedArea; + + Spool* spoolptr = (Spool*)(RegionSpoolInfo + spoolinfo_offsets[current_region]); + + sprintf(tempBuf, "Spooling: %d spec: %d, active: %d, Reg: %d, Ar: %d, Cn: %d %d", doSpooling, allowSpecSpooling, spoolactive, current_region, LoadedArea, spoolptr->connected_areas[0] & 0x3f, spoolptr->connected_areas[1] & 0x3f); + PrintString(tempBuf, 10, 30); sprintf(tempBuf, "Civs: %d - %d parked - max %d", numCivCars, numParkedCars, maxCivCars); PrintString(tempBuf, 10, 40);