mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix: Not jetpack prediction on DDNet incompatible servers
This commit is contained in:
parent
095d172903
commit
ce13aa6809
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue