Minor bug fixes.

This commit is contained in:
nehalmistry 2002-04-07 19:41:02 +00:00
parent ef09ba3300
commit e830c4b3e9
2 changed files with 8 additions and 3 deletions

View file

@ -1228,9 +1228,10 @@ global void QuitCD(void)
if (strcmp(CDMode,":off") && strcmp(CDMode,":stopped"))
SDL_CDStop(CDRom);
CDMode = ":stopped";
if (strcmp(CDMode,":off"))
if (strcmp(CDMode,":off")) {
SDL_CDClose(CDRom);
CDMode = ":off"
CDMode = ":off";
}
#endif
#ifdef USE_LIBCDA
@ -1240,7 +1241,7 @@ global void QuitCD(void)
if (strcmp(CDMode,":off")) {
cd_close();
cd_exit();
CDMode = ":off"
CDMode = ":off";
}
#endif
}

View file

@ -58,6 +58,10 @@
#include "SDL.h"
#endif
#ifdef USE_LIBCDA
#include "sound.h"
#endif
/*----------------------------------------------------------------------------
-- Prototypes for local functions
----------------------------------------------------------------------------*/