home · contact · privacy
Fix bug sending THING_CARRYING to clients who don't know about the carrying Thing...
authorChristian Heller <c.heller@plomlompom.de>
Mon, 7 Dec 2020 01:59:29 +0000 (02:59 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 7 Dec 2020 01:59:29 +0000 (02:59 +0100)
plomrogue/game.py

index 7d4103da3d793078d65554607a259b15ba31b7f1..fbfec6e6c5981687e4ba24c41930a82ada1c1a7d 100755 (executable)
@@ -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_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)]: