From cce1bc5d95958eb84746a4f72f5003cb4b5eab0a Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Tue, 16 Jun 2015 12:38:26 +0200 Subject: expose the zaps global variable --- src/game/g_local.h | 3 +++ src/game/g_weapon.c | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/game/g_local.h b/src/game/g_local.h index f8094715..6d3c8853 100644 --- a/src/game/g_local.h +++ b/src/game/g_local.h @@ -964,6 +964,9 @@ typedef struct zap_s gentity_t *effectChannel; } zap_t; +#define MAX_ZAPS MAX_CLIENTS +extern zap_t zaps[ MAX_ZAPS ]; + void G_ForceWeaponChange( gentity_t *ent, weapon_t weapon ); void G_GiveClientMaxAmmo( gentity_t *ent, qboolean buyingEnergyAmmo ); void CalcMuzzlePoint( gentity_t *ent, vec3_t forward, vec3_t right, vec3_t up, vec3_t muzzlePoint ); diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c index e6b0172a..08f2d1eb 100644 --- a/src/game/g_weapon.c +++ b/src/game/g_weapon.c @@ -1010,9 +1010,8 @@ LEVEL2 ====================================================================== */ -#define MAX_ZAPS MAX_CLIENTS -static zap_t zaps[ MAX_ZAPS ]; +zap_t zaps[ MAX_ZAPS ]; /* =============== -- cgit