Skip to content
Permalink
Browse files

- fixed: menu sounds no longer got the CHANF_UI flag.

  • Loading branch information
coelckers committed Jan 4, 2020
1 parent a588c24 commit 4646273569a40e2ec54d2d5ce0e6444b64a93234
Showing with 2 additions and 2 deletions.
  1. +1 −1 wadsrc/static/zscript/ui/menu/menu.zs
  2. +1 −1 wadsrc/static/zscript/ui/statscreen/statscreen.zs
@@ -284,7 +284,7 @@ class Menu : Object native ui version("2.4")

static void MenuSound(Sound snd)
{
S_StartSound (snd, CHAN_VOICE, CHANF_MAYBE_LOCAL, snd_menuvolume, ATTN_NONE);
S_StartSound (snd, CHAN_VOICE, CHANF_MAYBE_LOCAL|CHAN_UI, snd_menuvolume, ATTN_NONE);
}

deprecated("4.0") static void DrawConText (int color, int x, int y, String str)
@@ -715,7 +715,7 @@ class StatusScreen abstract play version("2.5")

static void PlaySound(Sound snd)
{
S_StartSound(snd, CHAN_VOICE, CHANF_MAYBE_LOCAL, 1, ATTN_NONE);
S_StartSound(snd, CHAN_VOICE, CHANF_MAYBE_LOCAL|CHANF_UI, 1, ATTN_NONE);
}


2 comments on commit 4646273

@Doom2fan

This comment has been minimized.

Copy link
Collaborator

Doom2fan replied Jan 4, 2020

There also seem to be extraneous MAYBE_LOCAL flags added there... The old code didn't have those there, and I don't think it'd do anything useful here.

@coelckers

This comment has been minimized.

Copy link
Owner Author

coelckers replied Jan 4, 2020

Yeah, that was the problem - something was badly translated. The flag is inconsequential for the menu, but it surely can be removed again.

Please sign in to comment.
You can’t perform that action at this time.