Commit b0fc6083 authored by Thomas Dupriez's avatar Thomas Dupriez

Modified ServerLoop so that it actually does what it is supposed to do when processing Events

parent 3d48f0f6
......@@ -102,8 +102,8 @@ public class ServerLoop extends Thread {
while (!(queue.isEmpty()) && queue.peek().getTime() == cframe) {
//System.out.println("Coucou, local execution");
Event event = queue.poll().getEvent();
event.apply(gameContent);
networkConnection.sendEvent(event);
Event toBeSentToClientsEvent = event.apply(gameContent);
networkConnection.sendEvent(toBeSentToClientsEvent);
}
gameContent.applyTrigger(networkConnection);
}
......
Markdown is supported
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