(svn r925) Use sound enums

Also play the correct sound when a toyland road vehicle breaks down
This commit is contained in:
tron
2004-12-04 09:26:39 +00:00
parent d036559e0e
commit e56c3cddd8
24 changed files with 118 additions and 106 deletions

View File

@@ -881,7 +881,7 @@ static void SmallMapWindowProc(Window *w, WindowEvent *e)
case 2: {/* big/small size */
// const Widget *wi = w->widget;
DeleteWindow(w);
SndPlayFx(0x13);
SndPlayFx(SND_15_BEEP);
{
int i = _smallmap_size + 1;
if (i == 3) i = 0;
@@ -913,14 +913,14 @@ static void SmallMapWindowProc(Window *w, WindowEvent *e)
_smallmap_type = e->click.widget - 5;
SetWindowDirty(w);
SndPlayFx(0x13);
SndPlayFx(SND_15_BEEP);
break;
case 11: /* toggle town names */
w->click_state ^= (1 << 11);
_smallmap_show_towns = (w->click_state >> 11) & 1;
SetWindowDirty(w);
SndPlayFx(0x13);
SndPlayFx(SND_15_BEEP);
break;
}
break;