summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2FloorPtrList.cpp
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-07-01 03:41:47 +0100
committerAsh Wolf <ninji@wuffs.org>2023-07-01 03:41:47 +0100
commit1eb8da84d77d0c865623421069ec38bfc7b0d461 (patch)
treef0938d2b8bd10338eedc0809acc2b8d7e6021e7d /src/T2DLL/T2FloorPtrList.cpp
parent5c6a48b2ff362a70416a6a00fda7d06e0f276f2d (diff)
downloadt2win-1eb8da84d77d0c865623421069ec38bfc7b0d461.tar.gz
t2win-1eb8da84d77d0c865623421069ec38bfc7b0d461.zip
game actually works now
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2FloorPtrList.cpp16
1 files changed, 8 insertions, 8 deletions
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;
}