ret = NET_GetMessage (host_client->netconnection);
if (ret == -1)
{
- Sys_Printf ("SV_ReadClientMessage: NET_GetMessage failed\n");
+ Con_Printf ("SV_ReadClientMessage: NET_GetMessage failed\n");
return false;
}
if (!ret)
if (msg_badread)
{
- Sys_Printf ("SV_ReadClientMessage: badread\n");
+ Con_Printf ("SV_ReadClientMessage: badread\n");
return false;
}
goto nextmsg;
default:
- Sys_Printf ("SV_ReadClientMessage: unknown command char %i\n", cmd);
+ Con_Printf ("SV_ReadClientMessage: unknown command char %i\n", cmd);
return false;
case clc_nop:
Cmd_ExecuteString (s, src_client);
}
else
- Con_DPrintf("%s tried to %s\n", host_client->name, s);
+ Con_Printf("%s tried to %s\n", host_client->name, s);
break;
case clc_disconnect:
if (!SV_ReadClientMessage ())
{
- // client misbehaved...
- SV_DropClient (false);
+ SV_DropClient (false); // client misbehaved...
continue;
}
}
else
SV_ClientThink ();
+
+ SV_CheckVelocity (sv_player);
+
+ // LordHavoc: a hack to ensure that the (rather silly) id1 quakec
+ // player_run/player_stand1 does not horribly malfunction if the
+ // velocity becomes a number that is both == 0 and != 0
+ // (sounds to me like NaN but to be absolutely safe...)
+ if (DotProduct(sv_player->v->velocity, sv_player->v->velocity) < 0.0001)
+ VectorClear(sv_player->v->velocity);
}
}
}