From: Christian Heller Date: Wed, 3 Sep 2014 00:36:33 +0000 (+0200) Subject: Server: Don't do two tests where one suffices. X-Git-Tag: tce~638 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7B%20deck_id%20%7D%7D/feed.xml?a=commitdiff_plain;h=ca22fd77389df670bc483c43ae03f4d76023816f;p=plomrogue Server: Don't do two tests where one suffices. --- 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;