let the mod handle syscall fix-ups in a unified way across build types

This commit is contained in:
myT 2022-10-28 23:39:05 +02:00
parent 03ae2d0d05
commit 2fd422c053
2 changed files with 1 additions and 8 deletions

View file

@ -307,11 +307,7 @@ int trap_GetCurrentCmdNumber( void ) {
}
qboolean trap_GetUserCmd( int cmdNumber, usercmd_t *ucmd ) {
const qboolean result = syscall( CG_GETUSERCMD, cmdNumber, ucmd );
ucmd->forwardmove = max( ucmd->forwardmove, -127 );
ucmd->rightmove = max( ucmd->rightmove, -127 );
ucmd->upmove = max( ucmd->upmove, -127 );
return result;
return syscall( CG_GETUSERCMD, cmdNumber, ucmd );
}
void trap_SetUserCmdValue( int stateValue, float sensitivityScale ) {

View file

@ -212,9 +212,6 @@ void trap_BotFreeClient( int clientNum ) {
void trap_GetUsercmd( int clientNum, usercmd_t *cmd ) {
syscall( G_GET_USERCMD, clientNum, cmd );
cmd->forwardmove = max( cmd->forwardmove, -127 );
cmd->rightmove = max( cmd->rightmove, -127 );
cmd->upmove = max( cmd->upmove, -127 );
}
qboolean trap_GetEntityToken( char *buffer, int bufferSize ) {