mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix spec voting
This commit is contained in:
parent
62409f740a
commit
0d6acbda16
|
@ -1044,7 +1044,8 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID)
|
|||
return;
|
||||
}
|
||||
|
||||
if(!GetPlayerChar(ClientID) || GetPlayerChar(SpectateID) || GetDDRaceTeam(ClientID) != GetDDRaceTeam(SpectateID))
|
||||
std::cout << GetDDRaceTeam(ClientID) << " " << GetDDRaceTeam(SpectateID) << std::endl;
|
||||
if(!GetPlayerChar(ClientID) || !GetPlayerChar(SpectateID) || GetDDRaceTeam(ClientID) != GetDDRaceTeam(SpectateID))
|
||||
{
|
||||
SendChatTarget(ClientID, "You can only move your team member to specators");
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue