Skip to content

Commit 17673a8

Browse files
authored
Merge pull request #759 from HyperJeanJean/julius
Allow players to continue playing 2 years after winning the second mission
2 parents aaf9ad7 + c3668e0 commit 17673a8

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/window/victory_dialog.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,13 @@ static void draw_foreground(void)
6666
} else {
6767
lang_text_draw_centered(62, 27, 80, 246, 480, FONT_NORMAL_GREEN);
6868
}
69-
if (scenario_campaign_rank() >= 2 || scenario_is_custom()) {
70-
// Continue for 2/5 years
69+
if (scenario_campaign_rank() >= 1 || scenario_is_custom()) {
70+
// Continue for 2 years
7171
large_label_draw(80, 272, 30, focus_button_id == 2);
7272
lang_text_draw_centered(62, 4, 80, 278, 480, FONT_NORMAL_GREEN);
73-
73+
}
74+
if (scenario_campaign_rank() >= 2 || scenario_is_custom()) {
75+
// Continue for 5 years
7476
large_label_draw(80, 304, 30, focus_button_id == 3);
7577
lang_text_draw_centered(62, 5, 80, 310, 480, FONT_NORMAL_GREEN);
7678
}
@@ -87,6 +89,8 @@ static void handle_input(const mouse *m, const hotkeys *h)
8789
int num_buttons;
8890
if (scenario_campaign_rank() >= 2 || scenario_is_custom()) {
8991
num_buttons = 3;
92+
} else if (scenario_campaign_rank() == 1) {
93+
num_buttons = 2;
9094
} else {
9195
num_buttons = 1;
9296
}

0 commit comments

Comments
 (0)