diff --git a/polymer/eduke32/source/gamedef.h b/polymer/eduke32/source/gamedef.h index 9f63d0322..460566c23 100644 --- a/polymer/eduke32/source/gamedef.h +++ b/polymer/eduke32/source/gamedef.h @@ -112,12 +112,6 @@ extern void VM_AccessProjectile(int32_t iSet, int32_t lVar1, int32_t lLabelID, i */ -enum vmflags_t { - VM_RETURN = 0x00000001, - VM_KILL = 0x00000002, - VM_NOEXECUTE = 0x00000004, -}; - typedef struct { int32_t g_i, g_p, g_x; int32_t *g_t; diff --git a/polymer/eduke32/source/gameexec.c b/polymer/eduke32/source/gameexec.c index f81c06295..9e6f3305f 100644 --- a/polymer/eduke32/source/gameexec.c +++ b/polymer/eduke32/source/gameexec.c @@ -48,6 +48,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # define GAMEEXEC_STATIC static #endif +enum vmflags_t { + VM_RETURN = 0x00000001, + VM_KILL = 0x00000002, + VM_NOEXECUTE = 0x00000004, +}; + vmstate_t vm; int32_t g_errorLineNum; @@ -767,7 +773,7 @@ void addweapon_maybeswitch(DukePlayer_t *ps, int32_t weap) P_AddWeaponNoSwitch(ps, weap); } -void addweapon_addammo_common(DukePlayer_t *ps, int32_t weap, int32_t amount) +static void addweapon_addammo_common(DukePlayer_t *ps, int32_t weap, int32_t amount) { P_AddAmmo(weap, ps, amount);