Fix crash when pmove_msec is 0
When pmove_fixed is set to 1, setting pmove_msec to 0 would crash.
This commit is contained in:
parent
bae86208f9
commit
e793c0c37c
2 changed files with 4 additions and 0 deletions
|
@ -785,9 +785,11 @@ void ClientThink_real( gentity_t *ent ) {
|
|||
|
||||
if ( pmove_msec.integer < 8 ) {
|
||||
trap_Cvar_Set("pmove_msec", "8");
|
||||
trap_Cvar_Update(&pmove_msec);
|
||||
}
|
||||
else if (pmove_msec.integer > 33) {
|
||||
trap_Cvar_Set("pmove_msec", "33");
|
||||
trap_Cvar_Update(&pmove_msec);
|
||||
}
|
||||
|
||||
if ( pmove_fixed.integer || client->pers.pmoveFixed ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue