diff --git a/dlls/tfc/tfcx/CMisc.h b/dlls/tfc/tfcx/CMisc.h index 7921562b..c68a73e1 100755 --- a/dlls/tfc/tfcx/CMisc.h +++ b/dlls/tfc/tfcx/CMisc.h @@ -12,7 +12,13 @@ #define LINUXOFFSET 5 #endif -#define TFCMAX_CUSTOMWPNS 5 +#ifndef __linux__ + #define WEAP_LINUXOFFSET 0 +#else + #define WEAP_LINUXOFFSET 3 +#endif + +#define TFCMAX_CUSTOMWPNS 5 #define TFCMAX_WEAPONS MAX_WEAPONS + TFCMAX_CUSTOMWPNS #define PD_SENTRY_OWNER 83 + LINUXOFFSET @@ -26,15 +32,15 @@ #define ACT_NADE_SHOT 1<<0 #define ACT_NADE_PUT 1<<1 -#define PD_AMMO_SHELLS 53 + LINUXOFFSET -#define PD_AMMO_BULLETS 55 + LINUXOFFSET -#define PD_AMMO_CELLS 57 + LINUXOFFSET -#define PD_AMMO_ROCKETS 59 + LINUXOFFSET -#define PD_AMMO_NADE1 14 + LINUXOFFSET -#define PD_AMMO_NADE2 15 + LINUXOFFSET +#define PD_AMMO_SHELLS 53 + WEAP_LINUXOFFSET +#define PD_AMMO_BULLETS 55 + WEAP_LINUXOFFSET +#define PD_AMMO_CELLS 57 + WEAP_LINUXOFFSET +#define PD_AMMO_ROCKETS 59 + WEAP_LINUXOFFSET +#define PD_AMMO_NADE1 14 + WEAP_LINUXOFFSET +#define PD_AMMO_NADE2 15 + WEAP_LINUXOFFSET enum { - TFC_AMMO_SHELLS = 0, + TFC_AMMO_SHELLS = 0, TFC_AMMO_BULLETS, TFC_AMMO_CELLS, TFC_AMMO_ROCKETS,