From c2efba6907fab934a04959b9bb644cf7141cc955 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Sat, 1 Jul 2023 23:04:04 +0100 Subject: matched T2DLL as well as i can --- src/T2DLL/T2PeopleArray.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/T2DLL/T2PeopleArray.cpp') 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++; } } -- cgit v1.2.3