mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 15:08:19 +00:00
Merge #2925
2925: bugfix: laser_damage was removed from tunes of 0.7 protocol r=def- a=pure-luck-999 Before: ![image](https://user-images.githubusercontent.com/68428243/94279573-f7ec0f80-ff54-11ea-852f-f6a2a195f935.png) After: ![image](https://user-images.githubusercontent.com/68428243/94279452-c96e3480-ff54-11ea-8af6-d12ef6b86312.png) Co-authored-by: Pure luck <pure_luck@fastmail.com>
This commit is contained in:
commit
f63f693656
|
@ -676,9 +676,13 @@ void CGameContext::SendTuningParams(int ClientID, int Zone)
|
|||
{
|
||||
if (m_apPlayers[ClientID] && m_apPlayers[ClientID]->GetCharacter())
|
||||
{
|
||||
if((i==31) // collision
|
||||
&& (m_apPlayers[ClientID]->GetCharacter()->NeededFaketuning() & FAKETUNE_SOLO
|
||||
|| m_apPlayers[ClientID]->GetCharacter()->NeededFaketuning() & FAKETUNE_NOCOLL))
|
||||
if((i == 30) // laser_damage is removed from 0.7
|
||||
&& (Server()->IsSixup(ClientID)))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
else if((i == 31) // collision
|
||||
&& (m_apPlayers[ClientID]->GetCharacter()->NeededFaketuning() & FAKETUNE_SOLO || m_apPlayers[ClientID]->GetCharacter()->NeededFaketuning() & FAKETUNE_NOCOLL))
|
||||
{
|
||||
Msg.AddInt(0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue