home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed redundant condition.
[plomrogue]
/
src
/
roguelike.c
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.");
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) {
monster->pos = t; }
void move_player (struct World * world, char d) {