From: Christian Heller Date: Thu, 21 Aug 2014 11:54:13 +0000 (+0200) Subject: Add to TODO. X-Git-Tag: tce~650 X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/decks?a=commitdiff_plain;h=bc117a9e8e2d69fcad8c8955ae8237b3476bf67b;p=plomrogue Add to TODO. --- diff --git a/TODO b/TODO index a5eb094..c9645c9 100644 --- a/TODO +++ b/TODO @@ -4,6 +4,10 @@ IN GENERAL: - expand use of hardcoded_strings module(s) +SERVER: + +- handle case of actors hitting the map edge + BOTH SERVER/CLIENT: - make server and client communicate by specific world state info requests diff --git a/src/server/yx_uint8.c b/src/server/yx_uint8.c index 8d47c82..626f9b4 100644 --- a/src/server/yx_uint8.c +++ b/src/server/yx_uint8.c @@ -19,7 +19,7 @@ extern uint8_t yx_uint8_cmp(struct yx_uint8 * a, struct yx_uint8 * b) extern struct yx_uint8 mv_yx_in_dir(char d, struct yx_uint8 yx) { - if (d == 'e' && yx.y > 0 && (yx.x < UINT8_MAX || !(yx.y % 2))) + if (d == 'e' && yx.y > 0 && (yx.x < UINT8_MAX || !(yx.y % 2))) { yx.x = yx.x + (yx.y % 2); yx.y--;