From bc117a9e8e2d69fcad8c8955ae8237b3476bf67b Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 21 Aug 2014 13:54:13 +0200 Subject: [PATCH] Add to TODO. --- TODO | 4 ++++ src/server/yx_uint8.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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--; -- 2.30.2