home
·
contact
·
privacy
projects
/
plomrogue2
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2bc9177
)
Fix bug sending THING_CARRYING to clients who don't know about the carrying Thing...
author
Christian Heller
<c.heller@plomlompom.de>
Mon, 7 Dec 2020 01:59:29 +0000
(
02:59
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Mon, 7 Dec 2020 01:59:29 +0000
(
02:59
+0100)
plomrogue/game.py
patch
|
blob
|
history
diff --git
a/plomrogue/game.py
b/plomrogue/game.py
index 7d4103da3d793078d65554607a259b15ba31b7f1..fbfec6e6c5981687e4ba24c41930a82ada1c1a7d 100755
(executable)
--- a/
plomrogue/game.py
+++ b/
plomrogue/game.py
@@
-241,7
+241,7
@@
class Game(GameBase):
self.io.send('THING_CHAR %s %s' % (t.id_,
quote(t.thing_char)), c_id)
if hasattr(t, 'carrying') and t.carrying:
self.io.send('THING_CHAR %s %s' % (t.id_,
quote(t.thing_char)), c_id)
if hasattr(t, 'carrying') and t.carrying:
- self.io.send('THING_CARRYING %s' % (t.id_))
+ self.io.send('THING_CARRYING %s' % (t.id_)
, c_id
)
for big_yx in self.portals:
for little_yx in [little_yx for little_yx in self.portals[big_yx]
if player.fov_test(big_yx, little_yx)]:
for big_yx in self.portals:
for little_yx in [little_yx for little_yx in self.portals[big_yx]
if player.fov_test(big_yx, little_yx)]: