mirror of https://bitbucket.org/CPMADevs/cnq3
let the mod handle syscall fix-ups in a unified way across build types
This commit is contained in:
parent
03ae2d0d05
commit
2fd422c053
|
@ -307,11 +307,7 @@ int trap_GetCurrentCmdNumber( void ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
qboolean trap_GetUserCmd( int cmdNumber, usercmd_t *ucmd ) {
|
qboolean trap_GetUserCmd( int cmdNumber, usercmd_t *ucmd ) {
|
||||||
const qboolean result = syscall( CG_GETUSERCMD, cmdNumber, ucmd );
|
return 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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void trap_SetUserCmdValue( int stateValue, float sensitivityScale ) {
|
void trap_SetUserCmdValue( int stateValue, float sensitivityScale ) {
|
||||||
|
|
|
@ -212,9 +212,6 @@ void trap_BotFreeClient( int clientNum ) {
|
||||||
|
|
||||||
void trap_GetUsercmd( int clientNum, usercmd_t *cmd ) {
|
void trap_GetUsercmd( int clientNum, usercmd_t *cmd ) {
|
||||||
syscall( G_GET_USERCMD, clientNum, 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 ) {
|
qboolean trap_GetEntityToken( char *buffer, int bufferSize ) {
|
||||||
|
|
Loading…
Reference in New Issue