From 21f19acd45c9b9a37645e7f4f03c135a267ea47c Mon Sep 17 00:00:00 2001 From: dystopm Date: Wed, 26 Jul 2023 15:02:03 -0400 Subject: [PATCH] AddAmmoNameToAmmoRegistry return type change --- reapi/extra/amxmodx/scripting/include/cssdk_const.inc | 6 +++--- reapi/include/cssdk/dlls/regamedll_api.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/reapi/extra/amxmodx/scripting/include/cssdk_const.inc b/reapi/extra/amxmodx/scripting/include/cssdk_const.inc index 3aab6434..149baeed 100644 --- a/reapi/extra/amxmodx/scripting/include/cssdk_const.inc +++ b/reapi/extra/amxmodx/scripting/include/cssdk_const.inc @@ -75,9 +75,9 @@ * global_get(glb_trace_flags) values * @note Custom flags that we can retrieve in pfnShouldCollide/TraceLine/TraceHull */ -#define FTRACE_BULLET (1<<16) -#define FTRACE_FLASH (1<<17) -#define FTRACE_KNIFE (1<<18) +#define FTRACE_BULLET (1<<16) +#define FTRACE_FLASH (1<<17) +#define FTRACE_KNIFE (1<<18) /** * get_entvar(entity, var_movetype) values diff --git a/reapi/include/cssdk/dlls/regamedll_api.h b/reapi/include/cssdk/dlls/regamedll_api.h index 1c074456..d3531fec 100644 --- a/reapi/include/cssdk/dlls/regamedll_api.h +++ b/reapi/include/cssdk/dlls/regamedll_api.h @@ -793,7 +793,7 @@ struct ReGameFuncs_t { void (*UTIL_RemoveOther)(const char *szClassname, int nCount); void (*UTIL_DecalTrace)(TraceResult *pTrace, int decalNumber); void (*UTIL_Remove)(CBaseEntity *pEntity); - void (*AddAmmoNameToAmmoRegistry)(const char *szAmmoname); + int (*AddAmmoNameToAmmoRegistry)(const char *szAmmoname); void (*TextureTypePlaySound)(TraceResult *ptr, Vector vecSrc, Vector vecEnd, int iBulletType); class CWeaponBox *(*CreateWeaponBox)(CBasePlayerItem *pItem, CBasePlayer *pPlayerOwner, const char *modelName, Vector &origin, Vector &angles, Vector &velocity, float lifeTime, bool packAmmo); class CGrenade *(*SpawnGrenade)(WeaponIdType weaponId, entvars_t *pevOwner, Vector &vecSrc, Vector &vecThrow, float time, int iTeam, unsigned short usEvent);