diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-07-01 23:04:04 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-07-01 23:04:04 +0100 |
commit | c2efba6907fab934a04959b9bb644cf7141cc955 (patch) | |
tree | c047244f99870e44a7a5d7e733c2857434c03765 /src/T2DLL/T2PeopleArray.cpp | |
parent | 1eb8da84d77d0c865623421069ec38bfc7b0d461 (diff) | |
download | t2win-c2efba6907fab934a04959b9bb644cf7141cc955.tar.gz t2win-c2efba6907fab934a04959b9bb644cf7141cc955.zip |
matched T2DLL as well as i can
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2PeopleArray.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/T2DLL/T2PeopleArray.cpp b/src/T2DLL/T2PeopleArray.cpp index 91edc64..f60debd 100644 --- a/src/T2DLL/T2PeopleArray.cpp +++ b/src/T2DLL/T2PeopleArray.cpp @@ -44,23 +44,23 @@ T2People* T2PeopleArray::FindUnusedPeople() { /*virtual*/ void T2PeopleArray::DispatchIdle(T2TowerDoc* towerDoc, int startIndex) { int i; - T2People *people; + T2People *thePeople; - people = &mPeople[startIndex]; + thePeople = &mPeople[startIndex]; for (i = startIndex; i < 256; i += 8) { - if (people->mUsed) - people->Idle(towerDoc); - people += 8; + if (thePeople->mUsed) + thePeople->Idle(towerDoc); + thePeople += 8; } - people = mPeople; - int walkRate = towerDoc->towerDoc_vf148(); + thePeople = mPeople; + int theWalkRate = towerDoc->towerDoc_vf148(); for (i = 0; i < 256; i++) { - if (people->mUsed) { - if ((walkRate > 0 && !(i % walkRate)) || people->IsSetSpecialFlag(kSpecialFlag20)) - people->IdleSearchedPerson(towerDoc); + if (thePeople->mUsed) { + if ((theWalkRate > 0 && !(i % theWalkRate)) || thePeople->IsSetSpecialFlag(kSpecialFlag20)) + thePeople->IdleSearchedPerson(towerDoc); } - people++; + thePeople++; } } |