diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-16 02:19:46 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-16 02:19:46 -0700 |
commit | 03bbcf1bf6be002dde3463c2370c11b2c7e38732 (patch) | |
tree | e75d4d85b0203927df73fb354227c53f95e5d5b0 /web/web_prompt.c | |
parent | 6a5cc149d373354941d046d3b3d851901fb4caf3 (diff) | |
download | dartboat-03bbcf1bf6be002dde3463c2370c11b2c7e38732.tar.gz dartboat-03bbcf1bf6be002dde3463c2370c11b2c7e38732.tar.xz |
web: clean up properly when match is ended while comp is throwing
Diffstat (limited to 'web/web_prompt.c')
-rw-r--r-- | web/web_prompt.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/web/web_prompt.c b/web/web_prompt.c index edb9f99..5bb7758 100644 --- a/web/web_prompt.c +++ b/web/web_prompt.c @@ -4,6 +4,7 @@ #include "web_match.h" #include "web_misc.h" #include "web_scoreboard.h" +#include "web_svg.h" #include <stdio.h> #include <stdlib.h> @@ -479,7 +480,11 @@ void prompt_handle_undo() void prompt_handle_exit() { if (key_is_active("exit")) { - // FIXME clear scheduled c calls (comp throwing) + 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); end_match(); } |