From: Christian Heller Date: Sun, 8 Mar 2015 00:28:20 +0000 (+0100) Subject: Server/py: Fix logging bug in actor_move(). X-Git-Tag: tce~379 X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/edit?a=commitdiff_plain;h=488f00137b0cb6797cdb88c3b4aa386327993ceb;p=plomrogue Server/py: Fix logging bug in actor_move(). --- 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")