X-Git-Url: https://plomlompom.com/repos/do_todos?a=blobdiff_plain;ds=sidebyside;f=src%2Fserver%2Fmap.c;h=0007633711d7ba29a5a7a5a9297c62ff47efaafd;hb=0d088abdfa3f0f591a1b13a2748193edeff509ef;hp=807083d708faf5dabff5d857d4270bc2d4c2b001;hpb=0720a8a7ee586548b096674c61cd8ae3067e508e;p=plomrogue 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;