Fix spec voting

This commit is contained in:
def 2013-08-13 18:14:03 +02:00
parent 62409f740a
commit 0d6acbda16

View file

@ -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;