mirror of
https://github.com/nzp-team/quakec.git
synced 2025-02-16 09:01:41 +00:00
parent
a63e5d363a
commit
55aef7c1b6
1 changed files with 16 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue