summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2FloorPtrList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/T2DLL/T2FloorPtrList.cpp')
-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;
}