- Linux CD Patch by caedes

- Bump auf 1.05
This commit is contained in:
Yamagi Burmeister 2009-06-14 16:00:34 +00:00
parent 9e865704fa
commit caa63853c3
3 changed files with 20 additions and 14 deletions

3
README
View file

@ -2,7 +2,8 @@ This is the Yamagi Quake II Client, an enhanced Version of id Software's
legendary Quake II. Main focus is single player, the gameplay is
unchanged but many bugs were fixed. This code should run under any POSIX
compliant operating system, just type "make" oder "gmake" to compile.
Remeber, you'll need a working SDL installation!
Remeber, you'll need a working SDL installation and the OpenGL system
headers!
This code is based upon Icculus Quake II, which is based upon id
Software's original code drop. It's released under the terms of the GPL

View file

@ -22,7 +22,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "../game/baseq2/q_shared.h"
#define VERSION 1.04
#define VERSION 1.05
#define BASEDIRNAME "baseq2"
#if defined __linux__

View file

@ -201,6 +201,8 @@ void CDAudio_Resume()
void CDAudio_Update()
{
static int cnt=0;
if(!cd_id || !enabled) return;
if(cd_volume && cd_volume->value != cdvolume)
{
@ -217,18 +219,21 @@ void CDAudio_Update()
cdvolume = cd_volume->value;
return;
}
// this causes too much overhead to be executed every frame
if(++cnt == 16) {
cnt=0;
if(cd_nocd->value)
{
CDAudio_Stop();
return;
}
if(cd_nocd->value)
{
CDAudio_Stop();
return;
}
if(playLooping &&
(SDL_CDStatus(cd_id) != CD_PLAYING) &&
(SDL_CDStatus(cd_id) != CD_PAUSED))
{
CDAudio_Play(lastTrack,true);
if(playLooping &&
(SDL_CDStatus(cd_id) != CD_PLAYING) &&
(SDL_CDStatus(cd_id) != CD_PAUSED))
{
CDAudio_Play(lastTrack,true);
}
}
}