The Endscreen now works over the network.

This commit is contained in:
stiffly
2016-03-13 23:33:10 +01:00
parent 03dab9ca9a
commit 7855cf03d2
4 changed files with 16 additions and 0 deletions
+3
View File
@@ -609,6 +609,9 @@ bool Server::OnWin(const Events::Win & e)
{
// Postpone the gameover reset
m_GameIsOver = true;
Packet winPacket = Packet(MessageType::Win);
winPacket.WritePrimitive(e.TeamThatWon);
reliableBroadcast(winPacket);
return true;
}