From 488f00137b0cb6797cdb88c3b4aa386327993ceb Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sun, 8 Mar 2015 01:28:20 +0100 Subject: [PATCH] Server/py: Fix logging bug in actor_move(). --- plomrogue-server.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plomrogue-server.py b/plomrogue-server.py index b08899a..b22701f 100755 --- a/plomrogue-server.py +++ b/plomrogue-server.py @@ -622,8 +622,9 @@ def actor_move(t): world_db["Things"][id]["T_POSY"] = move_result[1] world_db["Things"][id]["T_POSX"] = move_result[2] build_fov_map(t) - strong_write(io_db["file_out"], "LOG You move " + dir + ".\n") - else: + if t == world_db["Things"][0]: + strong_write(io_db["file_out"], "LOG You move " + dir + ".\n") + elif t == world_db["Things"][0]: strong_write(io_db["file_out"], "LOG You fail to move " + dir + ".\n") -- 2.30.2