summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2StairModule.cpp
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-07-01 23:04:04 +0100
committerAsh Wolf <ninji@wuffs.org>2023-07-01 23:04:04 +0100
commitc2efba6907fab934a04959b9bb644cf7141cc955 (patch)
treec047244f99870e44a7a5d7e733c2857434c03765 /src/T2DLL/T2StairModule.cpp
parent1eb8da84d77d0c865623421069ec38bfc7b0d461 (diff)
downloadt2win-c2efba6907fab934a04959b9bb644cf7141cc955.tar.gz
t2win-c2efba6907fab934a04959b9bb644cf7141cc955.zip
matched T2DLL as well as i can
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2StairModule.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/T2DLL/T2StairModule.cpp b/src/T2DLL/T2StairModule.cpp
index 751943f..ec2e5c3 100644
--- a/src/T2DLL/T2StairModule.cpp
+++ b/src/T2DLL/T2StairModule.cpp
@@ -26,19 +26,19 @@ void T2StairModule::MoverIDChanged(unsigned int moverID) {
}
/*virtual*/ void T2StairModule::RemoveContents(T2TowerDoc* towerDoc) {
- T2FloorInfo *floorInfo = towerDoc->towerDoc_vf12C();
+ T2FloorInfo *theFloorInfo = towerDoc->towerDoc_vf12C();
while (mLink1) {
- T2People *people = (T2People *) mLink1;
- Leave(people);
+ T2People *thePeople = (T2People *) mLink1;
+ Leave(thePeople);
- POINT pt = mModuleRect.TopLeft();
+ POINT theNextPt = mModuleRect.TopLeft();
if (mDirection != kStairDirection1)
- pt.y = mModuleRect.bottom - 1;
+ theNextPt.y = mModuleRect.bottom - 1;
- T2Tenant *floor = floorInfo->GetFloor(pt.y, pt.x);
- if (floor)
- floor->Enter(people);
+ T2Tenant *theFloor = theFloorInfo->GetFloor(theNextPt.y, theNextPt.x);
+ if (theFloor)
+ theFloor->Enter(thePeople);
}
}