Commit 28c96634 authored by CHEEKHOOREE LUCAS's avatar CHEEKHOOREE LUCAS
Browse files

fix clientID

parent 86e8bf7b
using Communication.Messages;
using System;
using Game;
namespace Game.Player
......@@ -12,7 +13,7 @@ public class DeathObserver : IMessageObserver
if(message is DeathMessage)
{
DeathMessage m = (DeathMessage)message;
sender.server.BroadcastMessage(new DeathMessage(m.playerId));
sender.server.BroadcastMessage(new DeathMessage(sender.clientId));
}
}
}
......
......@@ -242,7 +242,7 @@ public class Logs
}
/**
* @brief
* @brief Put the given log into the game logs
*/
private static void ManageGame(string log, string gameID, bool mustClose = false)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment