fix 1 crash
This commit is contained in:
parent
62c0007e15
commit
d396d84964
@ -75,7 +75,7 @@ bool CreateMove_hook(void* thisptr, float inputSample, CUserCmd* cmd) {
|
|||||||
|
|
||||||
bool time_replaced = false;
|
bool time_replaced = false;
|
||||||
float curtime_old = g_GlobalVars->curtime;;
|
float curtime_old = g_GlobalVars->curtime;;
|
||||||
if (CE_GOOD(g_pLocalPlayer->entity)) {
|
if (!g_Settings.bInvalid &&CE_GOOD(g_pLocalPlayer->entity)) {
|
||||||
float servertime = (float)CE_INT(g_pLocalPlayer->entity, netvar.nTickBase) * g_GlobalVars->interval_per_tick;
|
float servertime = (float)CE_INT(g_pLocalPlayer->entity, netvar.nTickBase) * g_GlobalVars->interval_per_tick;
|
||||||
g_GlobalVars->curtime = servertime;
|
g_GlobalVars->curtime = servertime;
|
||||||
time_replaced = true;
|
time_replaced = true;
|
||||||
|
Reference in New Issue
Block a user