summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2015-06-16 12:38:26 +0200
committer/dev/humancontroller <devhc@example.com>2017-03-09 13:51:17 +0100
commitcce1bc5d95958eb84746a4f72f5003cb4b5eab0a (patch)
tree00b2ffa41f216becffe97094d841c8830270f480 /src/game
parenta61357bc993ef3d3fcff2de1f1ca9423f3f9e80a (diff)
expose the zaps global variable
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_local.h3
-rw-r--r--src/game/g_weapon.c3
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 ];
/*
===============