From 1eb8da84d77d0c865623421069ec38bfc7b0d461 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Sat, 1 Jul 2023 03:41:47 +0100 Subject: game actually works now --- src/T2DLL/T2FloorPtrList.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/T2DLL/T2FloorPtrList.cpp') diff --git a/src/T2DLL/T2FloorPtrList.cpp b/src/T2DLL/T2FloorPtrList.cpp index f716e76..fec528d 100644 --- a/src/T2DLL/T2FloorPtrList.cpp +++ b/src/T2DLL/T2FloorPtrList.cpp @@ -20,19 +20,19 @@ T2FloorPtrList::T2FloorPtrList(T2TenantArrayList* inList) { } int T2FloorPtrList::CalcDistance(int inIndexA, int inIndexB) { - int distance = -1; + int theDistance = -1; T2Tenant *theFloorA = (T2Tenant *) GetItem(inIndexA); T2Tenant *theFloorB = (T2Tenant *) GetItem(inIndexB); if (theFloorA && theFloorB) { - RECT rectA, rectB; - theFloorA->GetEquipArea(rectA); - theFloorB->GetEquipArea(rectB); + RECT theRectA, theRectB; + theFloorA->GetEquipArea(theRectA); + theFloorB->GetEquipArea(theRectB); - distance = (rectA.bottom - 1) - (rectB.bottom - 1); - if (distance < 0) - distance *= -1; + theDistance = (theRectA.bottom - 1) - (theRectB.bottom - 1); + if (theDistance < 0) + theDistance *= -1; } - return distance; + return theDistance; } -- cgit v1.2.3