set force align stack for ClientCommand (for compatibility with the amxx cstrike module hacks)

This commit is contained in:
s1lentq 2016-06-27 01:31:23 +07:00
parent 82d49fdcb6
commit ffd603a477
2 changed files with 3 additions and 3 deletions

View File

@ -404,7 +404,7 @@ void CheckStartMoney()
CVAR_SET_FLOAT("mp_startmoney", max_money);
else if (money < 0)
CVAR_SET_FLOAT("mp_startmoney", 0);
#endif // REGAMEDLL_ADD
#endif
}
@ -2299,7 +2299,7 @@ BOOL HandleRadioAliasCommands(CBasePlayer *pPlayer, const char *pszCommand)
}
// Use CMD_ARGV, CMD_ARGV, and CMD_ARGC to get pointers the character string command.
void EXT_FUNC ClientCommand(edict_t *pEntity)
void EXT_ALIGN ClientCommand(edict_t *pEntity)
{
const char *pcmd = CMD_ARGV_(0);
const char *pstr = NULL;

View File

@ -199,5 +199,5 @@
// DLLEXPORT is defined, for convenience.
#define C_DLLEXPORT extern "C" DLLEXPORT
#define EXT_FUNC /*FORCE_STACK_ALIGN*/
#define EXT_FUNC FORCE_STACK_ALIGN
#define EXT_ALIGN FORCE_STACK_ALIGN