home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9346f3
)
Removed redundant condition.
author
Christian Heller
<c.heller@plomlompom.de>
Mon, 24 Jun 2013 14:35:44 +0000
(16:35 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Mon, 24 Jun 2013 14:35:44 +0000
(16:35 +0200)
src/roguelike.c
patch
|
blob
|
history
diff --git
a/src/roguelike.c
b/src/roguelike.c
index 525a8cfd0576f8f76113f7f36dedec809127022b..b38c01b2ceb6b786c718bcb8894d0fe8e9623dec 100644
(file)
--- 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) {