home
·
contact
·
privacy
projects
/
plomrogue2-experiments
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extend INC command results.
[plomrogue2-experiments]
/
server.py
diff --git
a/server.py
b/server.py
index 0a0ac88fc230d59e6a72c423f5a385a82b82b000..e9b519db5d92af4c74f34b50c5fd8df0bffdb419 100755
(executable)
--- a/
server.py
+++ b/
server.py
@@
-131,7
+131,8
@@
class CommandHandler:
self.send_to(connection_id, reply)
def cmd_inc(self, connection_id):
self.send_to(connection_id, reply)
def cmd_inc(self, connection_id):
- """Increment world.turn, send NEW_TURN message to all clients."""
+ """Increment world.turn, send TURN_FINISHED, NEW_TURN to everyone."""
+ self.send_all('TURN_FINISHED ' + str(self.world.turn))
self.world.turn += 1
self.send_all('NEW_TURN ' + str(self.world.turn))
self.world.turn += 1
self.send_all('NEW_TURN ' + str(self.world.turn))