Some CPool and CPools funcs, restoring original logic of pool lookup loops
This commit is contained in:
@@ -169,22 +169,22 @@ CCullZones::MarkSubwayAsInvisible(bool visible)
|
||||
CEntity *e;
|
||||
CVehicle *v;
|
||||
|
||||
n = CPools::GetBuildingPool()->GetSize();
|
||||
for(i = 0; i < n; i++){
|
||||
n = CPools::GetBuildingPool()->GetSize()-1;
|
||||
for(i = n; i >= 0; i--){
|
||||
e = CPools::GetBuildingPool()->GetSlot(i);
|
||||
if(e && e->bIsSubway)
|
||||
e->bIsVisible = visible;
|
||||
}
|
||||
|
||||
n = CPools::GetTreadablePool()->GetSize();
|
||||
for(i = 0; i < n; i++){
|
||||
n = CPools::GetTreadablePool()->GetSize()-1;
|
||||
for(i = n; i >= 0; i--){
|
||||
e = CPools::GetTreadablePool()->GetSlot(i);
|
||||
if(e && e->bIsSubway)
|
||||
e->bIsVisible = visible;
|
||||
}
|
||||
|
||||
n = CPools::GetVehiclePool()->GetSize();
|
||||
for(i = 0; i < n; i++){
|
||||
n = CPools::GetVehiclePool()->GetSize()-1;
|
||||
for(i = n; i >= 0; i--){
|
||||
v = CPools::GetVehiclePool()->GetSlot(i);
|
||||
if(v && v->IsTrain() && ((CTrain*)v)->m_nTrackId != TRACK_ELTRAIN)
|
||||
v->bIsVisible = visible;
|
||||
|
||||
Reference in New Issue
Block a user