mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-17 01:21:12 +00:00
- Linux CD Patch by caedes
- Bump auf 1.05
This commit is contained in:
parent
9e865704fa
commit
caa63853c3
3 changed files with 20 additions and 14 deletions
3
README
3
README
|
@ -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
|
legendary Quake II. Main focus is single player, the gameplay is
|
||||||
unchanged but many bugs were fixed. This code should run under any POSIX
|
unchanged but many bugs were fixed. This code should run under any POSIX
|
||||||
compliant operating system, just type "make" oder "gmake" to compile.
|
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
|
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
|
Software's original code drop. It's released under the terms of the GPL
|
||||||
|
|
|
@ -22,7 +22,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
#include "../game/baseq2/q_shared.h"
|
#include "../game/baseq2/q_shared.h"
|
||||||
|
|
||||||
#define VERSION 1.04
|
#define VERSION 1.05
|
||||||
#define BASEDIRNAME "baseq2"
|
#define BASEDIRNAME "baseq2"
|
||||||
|
|
||||||
#if defined __linux__
|
#if defined __linux__
|
||||||
|
|
27
src/sdl/cd.c
27
src/sdl/cd.c
|
@ -201,6 +201,8 @@ void CDAudio_Resume()
|
||||||
|
|
||||||
void CDAudio_Update()
|
void CDAudio_Update()
|
||||||
{
|
{
|
||||||
|
static int cnt=0;
|
||||||
|
|
||||||
if(!cd_id || !enabled) return;
|
if(!cd_id || !enabled) return;
|
||||||
if(cd_volume && cd_volume->value != cdvolume)
|
if(cd_volume && cd_volume->value != cdvolume)
|
||||||
{
|
{
|
||||||
|
@ -217,18 +219,21 @@ void CDAudio_Update()
|
||||||
cdvolume = cd_volume->value;
|
cdvolume = cd_volume->value;
|
||||||
return;
|
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)
|
if(playLooping &&
|
||||||
{
|
(SDL_CDStatus(cd_id) != CD_PLAYING) &&
|
||||||
CDAudio_Stop();
|
(SDL_CDStatus(cd_id) != CD_PAUSED))
|
||||||
return;
|
{
|
||||||
}
|
CDAudio_Play(lastTrack,true);
|
||||||
|
}
|
||||||
if(playLooping &&
|
|
||||||
(SDL_CDStatus(cd_id) != CD_PLAYING) &&
|
|
||||||
(SDL_CDStatus(cd_id) != CD_PAUSED))
|
|
||||||
{
|
|
||||||
CDAudio_Play(lastTrack,true);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue