diff options
author | Juan J. Martinez <jjm@usebox.net> | 2021-01-01 10:45:12 +0000 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2021-01-01 10:45:12 +0000 |
commit | e03e4b929e0372ef29bdd90c3be642b2bfe99164 (patch) | |
tree | 262d9801dc9263664ba357edea35d4a2169c2d0a /game | |
parent | 31d21465a3c30ba907885974be8dad97ddba52e6 (diff) | |
download | ubox-msx-lib-e03e4b929e0372ef29bdd90c3be642b2bfe99164.tar.gz ubox-msx-lib-e03e4b929e0372ef29bdd90c3be642b2bfe99164.zip |
Use the constants, avoid magic numbers
Diffstat (limited to 'game')
-rw-r--r-- | game/src/game.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |