1st of a few sequencing changes

rename display_gamewindows() to init_sound_and_display_gamewindows()
(I know that's getting pretty long-named).

move activate_chosen_soundlib() into init_sound_and_display_gamewindows()
from moveloop_preamble().

Also included was a missing break in a switch related to sounds.
This commit is contained in:
nhmall
2023-01-26 17:15:59 -05:00
parent 52a44b3255
commit 446044e1d5
15 changed files with 26 additions and 23 deletions

View File

@@ -58,8 +58,6 @@ moveloop_preamble(boolean resuming)
change_luck(-1);
}
activate_chosen_soundlib();
if (!resuming) { /* new game */
gc.context.rndencode = rnd(9000);
set_wear((struct obj *) 0); /* for side-effects of starting gear */
@@ -622,10 +620,12 @@ stop_occupation(void)
}
void
display_gamewindows(void)
init_sound_and_display_gamewindows(void)
{
int menu_behavior = MENU_BEHAVE_STANDARD;
activate_chosen_soundlib();
WIN_MESSAGE = create_nhwindow(NHW_MESSAGE);
if (VIA_WINDOWPORT()) {
status_initialize(0);
@@ -646,8 +646,8 @@ display_gamewindows(void)
#ifdef MAC
/* This _is_ the right place for this - maybe we will
* have to split display_gamewindows into create_gamewindows
* and show_gamewindows to get rid of this ifdef...
* have to split init_sound_and_display_gamewindows into
* create_gamewindows and show_gamewindows to get rid of this ifdef...
*/
if (!strcmp(windowprocs.name, "mac"))
SanePositions();