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 | 5d6de9e0f527db9658b05b877496c824faa96c55 (patch) | |
tree | 981ce3f4dd57f28762461e6172cd0c93d8338afe /client.c | |
parent | Add server map generation (diff) | |
download | torus-5d6de9e0f527db9658b05b877496c824faa96c55.tar.gz torus-5d6de9e0f527db9658b05b877496c824faa96c55.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 a7299ac..ea2eba7 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); |