summaryrefslogtreecommitdiff
path: root/web/web_match.c
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-20 03:02:17 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-20 03:02:17 -0700
commit48814611e9b638c4b2475fec129d83dcf92a889b (patch)
tree9be976dd1e1b6fb4b43a7764aeb7797a1b13faf0 /web/web_match.c
parentea0bafa754757ddb9ca06ae1cd3c40bc4649b83a (diff)
downloaddartboat-48814611e9b638c4b2475fec129d83dcf92a889b.tar.gz
dartboat-48814611e9b638c4b2475fec129d83dcf92a889b.tar.xz
web: dynamically allocate player bufs
Diffstat (limited to 'web/web_match.c')
-rw-r--r--web/web_match.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/web_match.c b/web/web_match.c
index 793aedd..f200f11 100644
--- a/web/web_match.c
+++ b/web/web_match.c
@@ -82,12 +82,12 @@ int match_winning_player()
return i + 1;
}
- return -1;
+ return 0;
}
bool match_is_over()
{
- return match_winning_player() != -1;
+ return match_winning_player() != 0;
}
int match_prev_player()