home
·
contact
·
privacy
projects
/
plomrogue2
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add comment explaining game state sending interval.
[plomrogue2]
/
plomrogue
/
commands.py
diff --git
a/plomrogue/commands.py
b/plomrogue/commands.py
index fc087fbe7434a4cc6966b773f123da07425909d4..a92359eac8c2fcab197ea9ea42d2cd2de72b9a40 100644
(file)
--- a/
plomrogue/commands.py
+++ b/
plomrogue/commands.py
@@
-44,7
+44,8
@@
def cmd_ALL(game, msg, connection_id):
if not speaker:
raise GameError('need to be logged in for this')
largest_audible_distance = 20
if not speaker:
raise GameError('need to be logged in for this')
largest_audible_distance = 20
- dijkstra_map = DijkstraMap(game.things, game.maps, speaker.position,
+ things = [t for t in game.things if t.type_ != 'Player']
+ dijkstra_map = DijkstraMap(things, game.maps, speaker.position,
largest_audible_distance, game.get_map)
for c_id in game.sessions:
listener = game.get_player(c_id)
largest_audible_distance, game.get_map)
for c_id in game.sessions:
listener = game.get_player(c_id)