mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 09:34:19 +00:00
Small cleanup
This commit is contained in:
parent
f3257e3949
commit
4245fae16f
|
@ -516,23 +516,23 @@ void CGameContext::SendTuningParams(int ClientID, int Zone)
|
||||||
&& (m_apPlayers[ClientID]->GetCharacter()->NeededFaketuning() & FAKETUNE_SOLO
|
&& (m_apPlayers[ClientID]->GetCharacter()->NeededFaketuning() & FAKETUNE_SOLO
|
||||||
|| m_apPlayers[ClientID]->GetCharacter()->NeededFaketuning() & FAKETUNE_NOCOLL))
|
|| m_apPlayers[ClientID]->GetCharacter()->NeededFaketuning() & FAKETUNE_NOCOLL))
|
||||||
{
|
{
|
||||||
Msg.AddInt(0); // send fake tunings selected above to the clients that they think they cant move
|
Msg.AddInt(0);
|
||||||
}
|
}
|
||||||
else if((i==32) // hooking
|
else if((i==32) // hooking
|
||||||
&& (m_apPlayers[ClientID]->GetCharacter()->NeededFaketuning() & FAKETUNE_SOLO
|
&& (m_apPlayers[ClientID]->GetCharacter()->NeededFaketuning() & FAKETUNE_SOLO
|
||||||
|| m_apPlayers[ClientID]->GetCharacter()->NeededFaketuning() & FAKETUNE_NOHOOK))
|
|| m_apPlayers[ClientID]->GetCharacter()->NeededFaketuning() & FAKETUNE_NOHOOK))
|
||||||
{
|
{
|
||||||
Msg.AddInt(0); // send fake tunings selected above to the clients that they think they cant move
|
Msg.AddInt(0);
|
||||||
}
|
}
|
||||||
else if((i==3) // ground jump impulse
|
else if((i==3) // ground jump impulse
|
||||||
&& m_apPlayers[ClientID]->GetCharacter()->NeededFaketuning() & FAKETUNE_NOJUMP)
|
&& m_apPlayers[ClientID]->GetCharacter()->NeededFaketuning() & FAKETUNE_NOJUMP)
|
||||||
{
|
{
|
||||||
Msg.AddInt(0); // send fake tunings selected above to the clients that they think they cant move
|
Msg.AddInt(0);
|
||||||
}
|
}
|
||||||
else if((i==33) // jetpack
|
else if((i==33) // jetpack
|
||||||
&& !(m_apPlayers[ClientID]->GetCharacter()->NeededFaketuning() & FAKETUNE_JETPACK))
|
&& !(m_apPlayers[ClientID]->GetCharacter()->NeededFaketuning() & FAKETUNE_JETPACK))
|
||||||
{
|
{
|
||||||
Msg.AddInt(0); // send fake tunings selected above to the clients that they think they cant move
|
Msg.AddInt(0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue