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:
0720a8a
)
Server: Minor simplification of mv_yx_in_dir_legal().
author
Christian Heller
<c.heller@plomlompom.de>
Sat, 6 Sep 2014 02:34:56 +0000
(
04:34
+0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Sat, 6 Sep 2014 02:34:56 +0000
(
04:34
+0200)
src/server/map.c
patch
|
blob
|
history
diff --git
a/src/server/map.c
b/src/server/map.c
index 807083d708faf5dabff5d857d4270bc2d4c2b001..0007633711d7ba29a5a7a5a9297c62ff47efaafd 100644
(file)
--- a/
src/server/map.c
+++ b/
src/server/map.c
@@
-220,7
+220,7
@@
extern uint8_t mv_yx_in_dir_legal(char dir, struct yx_uint8 * yx)
{
wrap_north_south++;
}
- if ( !
((wrap_west_east != 0) + (wrap_north_south != 0))
+ if ( !
wrap_west_east && !wrap_north_south
&& yx->x < world.map.length && yx->y < world.map.length)
{
return 1;