Prevent Catalina's heli from despawning

This commit is contained in:
Nab 2021-07-24 11:22:59 +02:00 committed by GitHub
parent 3adf37a3a9
commit 25f60af764
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -986,7 +986,11 @@ CHeli::UpdateHelis(void)
// Remove all helis if in a tunnel or under water
if(FindPlayerCoors().z < - 2.0f)
#ifdef FIX_BUGS
for(i = 0; i < HELI_CATALINA; i++)
#else
for(i = 0; i < NUM_HELIS; i++)
#endif
if(pHelis[i] && pHelis[i]->m_heliStatus != HELI_STATUS_SHOT_DOWN)
pHelis[i]->m_heliStatus = HELI_STATUS_FLY_AWAY;
}