From: Christian Heller Date: Sat, 6 Sep 2014 02:34:56 +0000 (+0200) Subject: Server: Minor simplification of mv_yx_in_dir_legal(). X-Git-Tag: tce~634 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D?a=commitdiff_plain;h=0d088abdfa3f0f591a1b13a2748193edeff509ef;p=plomrogue Server: Minor simplification of mv_yx_in_dir_legal(). --- diff --git a/src/server/map.c b/src/server/map.c index 807083d..0007633 100644 --- 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;