mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-15 05:04:08 +00:00
Merge pull request #246 from Sergeanur/Pools
Some CPool and CPools funcs, restoring original logic of pool lookup loops
This commit is contained in:
commit
4844b3a3f8
13 changed files with 147 additions and 51 deletions
|
@ -153,8 +153,8 @@ CPhoneInfo::Initialise(void)
|
|||
pickedUpPhone = nil;
|
||||
m_nMax = 0;
|
||||
m_nNum = 0;
|
||||
for (int v5 = pool->GetSize() - 1; v5 >= 0; v5--) {
|
||||
CBuilding *building = pool->GetSlot(v5);
|
||||
for (int i = pool->GetSize() - 1; i >= 0; i--) {
|
||||
CBuilding *building = pool->GetSlot(i);
|
||||
if (building) {
|
||||
if (building->m_modelIndex == MI_PHONEBOOTH1) {
|
||||
CPhone *maxPhone = &m_aPhones[m_nMax];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue