diff options
author | June McEnroe <june@causal.agency> | 2018-07-19 15:44:16 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-07-19 15:44:16 -0400 |
commit | 515992ffca07b2aeb6c13b333b194e42e5a1fe34 (patch) | |
tree | ab23be1b7e8a6ee555355153c963d933ace6fe38 /client.c | |
parent | Add server map generation (diff) | |
download | torus-515992ffca07b2aeb6c13b333b194e42e5a1fe34.tar.gz torus-515992ffca07b2aeb6c13b333b194e42e5a1fe34.zip |
Add ARRAY_LEN macro
Diffstat (limited to '')
-rw-r--r-- | client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client.c b/client.c index ee120e5..ea1f6f5 100644 --- a/client.c +++ b/client.c @@ -197,7 +197,7 @@ static void readInput(void) { break; case 'q': endwin(); exit(EX_OK); break; case 'Q': { - if ((input.color & 0x07) < SPAWNS_LEN) { + if ((input.color & 0x07) < ARRAY_LEN(SPAWNS)) { clientSpawn(input.color & 0x07); } else { clientSpawn(0); |