summaryrefslogtreecommitdiff
path: root/web/web_prompt.c
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-16 14:02:07 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-16 14:04:26 -0700
commit9c8d587a4b9eb3c908027c21aeab0b01b25ae02b (patch)
treefaaf1ac7d7c291c02dcd1e305ee720ac89ee25b7 /web/web_prompt.c
parent03bbcf1bf6be002dde3463c2370c11b2c7e38732 (diff)
downloaddartboat-9c8d587a4b9eb3c908027c21aeab0b01b25ae02b.tar.gz
dartboat-9c8d587a4b9eb3c908027c21aeab0b01b25ae02b.tar.xz
web: fix ending match mid-comp-throw and starting another quickly
Diffstat (limited to 'web/web_prompt.c')
-rw-r--r--web/web_prompt.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/web/web_prompt.c b/web/web_prompt.c
index 5bb7758..f3b523e 100644
--- a/web/web_prompt.c
+++ b/web/web_prompt.c
@@ -4,7 +4,6 @@
#include "web_match.h"
#include "web_misc.h"
#include "web_scoreboard.h"
-#include "web_svg.h"
#include <stdio.h>
#include <stdlib.h>
@@ -479,15 +478,8 @@ void prompt_handle_undo()
void prompt_handle_exit()
{
- if (key_is_active("exit")) {
- clear_scheduled();
- // FIXME: we need to clean up since end_boat_visit is never
- // called, but it's currently a bit messy
- svg_clear_points();
- prompt_set_input(NULL);
- scoreboard_set_player_active(-1);
+ if (key_is_active("exit"))
end_match();
- }
toggle_key("exit");
}