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:
bc7f716
)
Server: Don't do two tests where one suffices.
author
Christian Heller
<c.heller@plomlompom.de>
Wed, 3 Sep 2014 00:36:33 +0000
(
02:36
+0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Wed, 3 Sep 2014 00:36:33 +0000
(
02:36
+0200)
src/server/map.c
patch
|
blob
|
history
diff --git
a/src/server/map.c
b/src/server/map.c
index d4265f37a6e3ce4daa2881ecf03ff7932d8264b4..30d64a5ddea02da915d6bd733450f60f166e73b9 100644
(file)
--- a/
src/server/map.c
+++ b/
src/server/map.c
@@
-79,8
+79,8
@@
static uint8_t mv_yx_in_dir_wrap(char d, struct yx_uint8 * yx)
static int8_t wrap_west_east = 0;
static int8_t wrap_north_south = 0;
char * err = "Too much wrapping in mv_yx_in_dir_wrap().";
static int8_t wrap_west_east = 0;
static int8_t wrap_north_south = 0;
char * err = "Too much wrapping in mv_yx_in_dir_wrap().";
- exit_err(
INT8_MIN == wrap_west_east || INT8_MIN == wrap_north_south, err);
-
exit_err(
INT8_MAX == wrap_west_east || INT8_MAX == wrap_north_south, err);
+ exit_err(
INT8_MIN == wrap_west_east || INT8_MIN == wrap_north_south
+
||
INT8_MAX == wrap_west_east || INT8_MAX == wrap_north_south, err);
if (!yx)
{
wrap_west_east = wrap_north_south = 0;
if (!yx)
{
wrap_west_east = wrap_north_south = 0;