Prevent Catalina's heli from despawning #2

This commit is contained in:
Nab 2021-08-08 11:55:37 +02:00 committed by GitHub
parent 25f60af764
commit 22e4d13163
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -986,10 +986,9 @@ 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++)
#ifdef FIX_BUGS
if(i == HELI_CATALINA) continue;
#endif
if(pHelis[i] && pHelis[i]->m_heliStatus != HELI_STATUS_SHOT_DOWN)
pHelis[i]->m_heliStatus = HELI_STATUS_FLY_AWAY;