From e03e4b929e0372ef29bdd90c3be642b2bfe99164 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Fri, 1 Jan 2021 10:45:12 +0000 Subject: Use the constants, avoid magic numbers --- game/src/game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/src/game.c b/game/src/game.c index 6a85ad2..bb08f32 100644 --- a/game/src/game.c +++ b/game/src/game.c @@ -44,7 +44,7 @@ void init_map_entities() entities[last].x = m[1]; entities[last].y = m[2]; // in the map: param is 1 (int) to look left - entities[last].dir = m[0] & DIR_FLAG ? 1 : 0; + entities[last].dir = m[0] & DIR_FLAG ? DIR_LEFT : DIR_RIGHT; switch (typ) { -- cgit v1.2.3