SERVER/STANDARD: revert part of PR #73 (#78)

This commit is contained in:
Peter0x44 2024-06-19 01:04:57 +01:00 committed by GitHub
parent a63e5d363a
commit 55aef7c1b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,6 +26,15 @@
*/
// FTEQCC currently has an optimization bug with -fastarrays
// that leads to corruption with the weapon list. Disable
// if we're not on FTE.
#ifndef FTE
#pragma flag disable fastarrays
#endif // FTE
// TODO: Actually implement some of these..
// Frame types, generalized.
#define ANIM_FIRE 0
@ -432,6 +441,13 @@ void Weapon_FixUpList()
}
};
// Re-enable fast array optimization.
#ifndef FTE
#pragma flag enable fastarrays
#endif // FTE
void Weapon_RemoveWeapon(float slot)
{
self.weapons[slot].is_mulekick_weapon = false;