From 320b8c4e907fd6be633b68c5c8c7785eadf76b4e Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Mon, 24 Jun 2013 16:35:44 +0200 Subject: [PATCH] Removed redundant condition. --- src/roguelike.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/roguelike.c b/src/roguelike.c index 525a8cf..b38c01b 100644 --- a/src/roguelike.c +++ b/src/roguelike.c @@ -132,7 +132,7 @@ void move_monster (struct World * world, struct Monster * monster) { break; } } if (met_monster) update_log (world, "\nMonster hits monster."); - else if (0 == met_monster && is_passable(world->map, t.y, t.x)) + else if (is_passable(world->map, t.y, t.x)) monster->pos = t; } void move_player (struct World * world, char d) { -- 2.30.2