diff options
Diffstat (limited to 'web/web_control.c')
-rw-r--r-- | web/web_control.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/web/web_control.c b/web/web_control.c index b0a777c..ca45ed4 100644 --- a/web/web_control.c +++ b/web/web_control.c @@ -263,6 +263,10 @@ void match_mode_selected(int mode) } else if (mode == M_PVPVP) { match_opts->p1_name = "Player 1"; match_opts->p2_name = "Player 2"; + } else if (mode == M_PVCVCVC) { + match_opts->p1_name = "User"; + match_opts->p2_type = PT_COMP; + match_opts->p2_name = "Computer 1"; } prompt_match_opts(); @@ -278,6 +282,10 @@ void start_match() match_opts->p2_name ? match_opts->p2_name : "oi"); if (match_opts->mode == M_PVPVP) match_add_player(match_opts->start_pts, PT_USER, "Player 3"); + else if (match_opts->mode == M_PVCVCVC) { + match_add_player(match_opts->start_pts, PT_COMP, "Computer 2"); + match_add_player(match_opts->start_pts, PT_COMP, "Computer 3"); + } scoreboard_show_info(match_num_players()); for (int i = 1; i <= match_num_players(); ++i) { |