X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fmsdos.c;h=181a9f1ada1712bd03ff9bf7ab8172a55dcef1b3;hb=1150bdce04915bf329bd816307fb2507eba80e15;hp=b0d9d2cb91afc2d8250e0b56ba57bacad44b5edc;hpb=b96c3dc500494652748c24f0aa48a8201ea202dd;p=rocksndiamonds.git diff --git a/src/msdos.c b/src/msdos.c index b0d9d2cb..181a9f1a 100644 --- a/src/msdos.c +++ b/src/msdos.c @@ -12,7 +12,9 @@ * msdos.c * ***********************************************************/ -#ifdef MSDOS +#include "platform.h" + +#if defined(PLATFORM_MSDOS) #include "main.h" #include "misc.h" @@ -88,10 +90,11 @@ static void allegro_drivers() last_joystick_state = 0; joystick_event = FALSE; + sysinfo.audio_available = TRUE; reserve_voices(MAX_SOUNDS_PLAYING, 0); if (install_sound(DIGI_AUTODETECT, MIDI_NONE, NULL) == -1) if (install_sound(DIGI_SB, MIDI_NONE, NULL) == -1) - sound_status = SOUND_OFF; + sysinfo.audio_available = FALSE; } static boolean hide_mouse(Display *display, int x, int y, @@ -917,4 +920,4 @@ void NetworkServer(int port, int serveronly) Error(ERR_WARN, "networking not supported in DOS version"); } -#endif /* MSDOS */ +#endif /* PLATFORM_MSDOS */