Fix: Not jetpack prediction on DDNet incompatible servers

This commit is contained in:
def 2015-01-09 22:18:11 +01:00
parent 095d172903
commit ce13aa6809

View file

@ -668,6 +668,8 @@ void CGameClient::OnMessage(int MsgId, CUnpacker *pUnpacker, bool IsDummy)
// unpack the new tuning
CTuningParams NewTuning;
int *pParams = (int *)&NewTuning;
// No jetpack on DDNet incompatible servers:
NewTuning.m_JetpackStrength = 0;
for(unsigned i = 0; i < sizeof(CTuningParams)/sizeof(int); i++)
{
int value = pUnpacker->GetInt();