From: Christian Heller Date: Mon, 24 Jun 2013 14:35:44 +0000 (+0200) Subject: Removed redundant condition. X-Git-Tag: tce~1197 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/static/%7B%7Bdb.prefix%7D%7D/add_task?a=commitdiff_plain;h=320b8c4e907fd6be633b68c5c8c7785eadf76b4e;p=plomrogue Removed redundant condition. --- 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) {