mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fix crash
This commit is contained in:
parent
37badd724b
commit
874e716fdb
|
@ -197,7 +197,7 @@ void CGameWorld::UpdatePlayerMaps()
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
dist[j].first = distance(GameServer()->m_apPlayers[i]->GetCharacter()->m_Pos, GameServer()->m_apPlayers[j]->GetCharacter()->m_Pos);
|
dist[j].first = distance(GameServer()->m_apPlayers[i]->m_ViewPos, GameServer()->m_apPlayers[j]->GetCharacter()->m_Pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
// always send the player himself
|
// always send the player himself
|
||||||
|
|
Loading…
Reference in a new issue