Fix build.

I wonder why I didn't catch this in sunday. For some reason a "make
clean ; make" cycle was necessary. Maybe a corner case that the header
dependencies didn't catch?
This commit is contained in:
Yamagi Burmeister 2018-06-12 18:42:21 +02:00
parent a4e8932deb
commit 653d2bad80
2 changed files with 3 additions and 2 deletions

View File

@ -42,7 +42,6 @@ typedef enum
void OGG_InitTrackList(void);
void OGG_Init(void);
void OGG_PlayTrack(int track);
void OGG_Read(void);
void OGG_Shutdown(void);
void OGG_Stop(void);
void OGG_Stream(void);

View File

@ -57,7 +57,7 @@ enum { MAX_NUM_OGGTRACKS = 32 };
static char* oggTracks[MAX_NUM_OGGTRACKS];
static int oggMaxFileIndex;
static enum GameType {
enum GameType {
other, // incl. baseq2
xatrix,
rogue
@ -311,6 +311,8 @@ OGG_PlayTrack(int trackNo)
}
}
Com_Printf("Track number: %i\n", trackNo);
if(oggMaxFileIndex == 0)
{
return; // no ogg files at all, ignore this silently instead of printing warnings all the time