From ca22fd77389df670bc483c43ae03f4d76023816f Mon Sep 17 00:00:00 2001 From: Christian Heller <c.heller@plomlompom.de> Date: Wed, 3 Sep 2014 02:36:33 +0200 Subject: [PATCH] Server: Don't do two tests where one suffices. --- src/server/map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/map.c b/src/server/map.c index d4265f3..30d64a5 100644 --- 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()."; - 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; -- 2.30.2