Skip to content

Commit

Permalink
Fixed doom2 level select mess
Browse files Browse the repository at this point in the history
  • Loading branch information
Daivuk committed Oct 29, 2023
1 parent 06278cd commit de31926
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Launcher/APDoomLauncher/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/archipelago/apdoom.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ extern "C"

#define APDOOM_MAJOR 1
#define APDOOM_MINOR 0
#define APDOOM_PATCH 1
#define APDOOM_PATCH 2
#define APDOOM_STR(x) APDOOM_STR2(x)
#define APDOOM_STR2(x) #x
#define APDOOM_VERSION APDOOM_STR(APDOOM_MAJOR) "." APDOOM_STR(APDOOM_MINOR) "." APDOOM_STR(APDOOM_PATCH)
Expand Down
3 changes: 2 additions & 1 deletion src/doom/level_select.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,8 @@ static void level_select_next_episode()

static void level_select_nav_enter()
{
if (ap_get_level_state(ap_make_level_index(selected_ep + 1, selected_level[selected_ep] + 1))->unlocked)
ap_level_index_t idx = {selected_ep, selected_level[selected_ep]};
if (ap_get_level_state(idx)->unlocked)
{
S_StartSoundOptional(NULL, sfx_mnusli, sfx_swtchn);
play_level(selected_ep, selected_level[selected_ep]);
Expand Down

0 comments on commit de31926

Please sign in to comment.