mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-13 21:51:09 +00:00
Merge branch 'master' into game/eliteforce
This commit is contained in:
commit
56bdf5d656
8 changed files with 23 additions and 22 deletions
9
Makefile
9
Makefile
|
@ -1115,11 +1115,10 @@ ifeq ($(USE_INTERNAL_JPEG),1)
|
||||||
BASE_CFLAGS += -DUSE_INTERNAL_JPEG
|
BASE_CFLAGS += -DUSE_INTERNAL_JPEG
|
||||||
BASE_CFLAGS += -I$(JPDIR)
|
BASE_CFLAGS += -I$(JPDIR)
|
||||||
else
|
else
|
||||||
# libjpeg doesn't have pkg-config yet, but let users override with
|
# IJG libjpeg doesn't have pkg-config, but libjpeg-turbo uses libjpeg.pc;
|
||||||
# "make JPEG_CFLAGS=-I/opt/jpeg/include JPEG_LIBS='-L/opt/jpeg/lib -ljpeg'"
|
# we fall back to hard-coded answers if libjpeg.pc is unavailable
|
||||||
# if they need to
|
JPEG_CFLAGS ?= $(shell pkg-config --silence-errors --cflags libjpeg || true)
|
||||||
JPEG_CFLAGS ?=
|
JPEG_LIBS ?= $(shell pkg-config --silence-errors --libs libjpeg || echo -ljpeg)
|
||||||
JPEG_LIBS ?= -ljpeg
|
|
||||||
BASE_CFLAGS += $(JPEG_CFLAGS)
|
BASE_CFLAGS += $(JPEG_CFLAGS)
|
||||||
RENDERER_LIBS += $(JPEG_LIBS)
|
RENDERER_LIBS += $(JPEG_LIBS)
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -820,7 +820,6 @@ CG_PlayVoiceChat
|
||||||
=================
|
=================
|
||||||
*/
|
*/
|
||||||
void CG_PlayVoiceChat( bufferedVoiceChat_t *vchat ) {
|
void CG_PlayVoiceChat( bufferedVoiceChat_t *vchat ) {
|
||||||
#ifdef MISSIONPACK
|
|
||||||
// if we are going into the intermission, don't start any voices
|
// if we are going into the intermission, don't start any voices
|
||||||
if ( cg.intermissionStarted ) {
|
if ( cg.intermissionStarted ) {
|
||||||
return;
|
return;
|
||||||
|
@ -845,7 +844,6 @@ void CG_PlayVoiceChat( bufferedVoiceChat_t *vchat ) {
|
||||||
CG_Printf( "%s\n", vchat->message );
|
CG_Printf( "%s\n", vchat->message );
|
||||||
}
|
}
|
||||||
voiceChatBuffer[cg.voiceChatBufferOut].snd = 0;
|
voiceChatBuffer[cg.voiceChatBufferOut].snd = 0;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -854,7 +852,6 @@ CG_PlayBufferedVoieChats
|
||||||
=====================
|
=====================
|
||||||
*/
|
*/
|
||||||
void CG_PlayBufferedVoiceChats( void ) {
|
void CG_PlayBufferedVoiceChats( void ) {
|
||||||
#ifdef MISSIONPACK
|
|
||||||
if ( cg.voiceChatTime < cg.time ) {
|
if ( cg.voiceChatTime < cg.time ) {
|
||||||
if (cg.voiceChatBufferOut != cg.voiceChatBufferIn && voiceChatBuffer[cg.voiceChatBufferOut].snd) {
|
if (cg.voiceChatBufferOut != cg.voiceChatBufferIn && voiceChatBuffer[cg.voiceChatBufferOut].snd) {
|
||||||
//
|
//
|
||||||
|
@ -864,7 +861,6 @@ void CG_PlayBufferedVoiceChats( void ) {
|
||||||
cg.voiceChatTime = cg.time + 1000;
|
cg.voiceChatTime = cg.time + 1000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -873,7 +869,6 @@ CG_AddBufferedVoiceChat
|
||||||
=====================
|
=====================
|
||||||
*/
|
*/
|
||||||
void CG_AddBufferedVoiceChat( bufferedVoiceChat_t *vchat ) {
|
void CG_AddBufferedVoiceChat( bufferedVoiceChat_t *vchat ) {
|
||||||
#ifdef MISSIONPACK
|
|
||||||
// if we are going into the intermission, don't start any voices
|
// if we are going into the intermission, don't start any voices
|
||||||
if ( cg.intermissionStarted ) {
|
if ( cg.intermissionStarted ) {
|
||||||
return;
|
return;
|
||||||
|
@ -885,7 +880,6 @@ void CG_AddBufferedVoiceChat( bufferedVoiceChat_t *vchat ) {
|
||||||
CG_PlayVoiceChat( &voiceChatBuffer[cg.voiceChatBufferOut] );
|
CG_PlayVoiceChat( &voiceChatBuffer[cg.voiceChatBufferOut] );
|
||||||
cg.voiceChatBufferOut++;
|
cg.voiceChatBufferOut++;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -894,7 +888,6 @@ CG_VoiceChatLocal
|
||||||
=================
|
=================
|
||||||
*/
|
*/
|
||||||
void CG_VoiceChatLocal( int mode, qboolean voiceOnly, int clientNum, int color, const char *cmd ) {
|
void CG_VoiceChatLocal( int mode, qboolean voiceOnly, int clientNum, int color, const char *cmd ) {
|
||||||
#ifdef MISSIONPACK
|
|
||||||
char *chat;
|
char *chat;
|
||||||
voiceChatList_t *voiceChatList;
|
voiceChatList_t *voiceChatList;
|
||||||
clientInfo_t *ci;
|
clientInfo_t *ci;
|
||||||
|
@ -934,7 +927,6 @@ void CG_VoiceChatLocal( int mode, qboolean voiceOnly, int clientNum, int color,
|
||||||
CG_AddBufferedVoiceChat(&vchat);
|
CG_AddBufferedVoiceChat(&vchat);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -962,7 +954,7 @@ void CG_VoiceChat( int mode ) {
|
||||||
|
|
||||||
CG_VoiceChatLocal( mode, voiceOnly, clientNum, color, cmd );
|
CG_VoiceChatLocal( mode, voiceOnly, clientNum, color, cmd );
|
||||||
}
|
}
|
||||||
#endif
|
#endif // MISSIONPACK
|
||||||
|
|
||||||
/*
|
/*
|
||||||
=================
|
=================
|
||||||
|
|
|
@ -1100,7 +1100,8 @@ void BotWriteSessionData(bot_state_t *bs) {
|
||||||
"%i %i %i %i %i %i %i %i"
|
"%i %i %i %i %i %i %i %i"
|
||||||
" %f %f %f"
|
" %f %f %f"
|
||||||
" %f %f %f"
|
" %f %f %f"
|
||||||
" %f %f %f",
|
" %f %f %f"
|
||||||
|
" %f",
|
||||||
bs->lastgoal_decisionmaker,
|
bs->lastgoal_decisionmaker,
|
||||||
bs->lastgoal_ltgtype,
|
bs->lastgoal_ltgtype,
|
||||||
bs->lastgoal_teammate,
|
bs->lastgoal_teammate,
|
||||||
|
@ -1117,7 +1118,8 @@ void BotWriteSessionData(bot_state_t *bs) {
|
||||||
bs->lastgoal_teamgoal.mins[2],
|
bs->lastgoal_teamgoal.mins[2],
|
||||||
bs->lastgoal_teamgoal.maxs[0],
|
bs->lastgoal_teamgoal.maxs[0],
|
||||||
bs->lastgoal_teamgoal.maxs[1],
|
bs->lastgoal_teamgoal.maxs[1],
|
||||||
bs->lastgoal_teamgoal.maxs[2]
|
bs->lastgoal_teamgoal.maxs[2],
|
||||||
|
bs->formation_dist
|
||||||
);
|
);
|
||||||
|
|
||||||
var = va( "botsession%i", bs->client );
|
var = va( "botsession%i", bs->client );
|
||||||
|
@ -1141,7 +1143,8 @@ void BotReadSessionData(bot_state_t *bs) {
|
||||||
"%i %i %i %i %i %i %i %i"
|
"%i %i %i %i %i %i %i %i"
|
||||||
" %f %f %f"
|
" %f %f %f"
|
||||||
" %f %f %f"
|
" %f %f %f"
|
||||||
" %f %f %f",
|
" %f %f %f"
|
||||||
|
" %f",
|
||||||
&bs->lastgoal_decisionmaker,
|
&bs->lastgoal_decisionmaker,
|
||||||
&bs->lastgoal_ltgtype,
|
&bs->lastgoal_ltgtype,
|
||||||
&bs->lastgoal_teammate,
|
&bs->lastgoal_teammate,
|
||||||
|
@ -1158,7 +1161,8 @@ void BotReadSessionData(bot_state_t *bs) {
|
||||||
&bs->lastgoal_teamgoal.mins[2],
|
&bs->lastgoal_teamgoal.mins[2],
|
||||||
&bs->lastgoal_teamgoal.maxs[0],
|
&bs->lastgoal_teamgoal.maxs[0],
|
||||||
&bs->lastgoal_teamgoal.maxs[1],
|
&bs->lastgoal_teamgoal.maxs[1],
|
||||||
&bs->lastgoal_teamgoal.maxs[2]
|
&bs->lastgoal_teamgoal.maxs[2],
|
||||||
|
&bs->formation_dist
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
/* unzip.c -- IO for uncompress .zip files using zlib
|
/* unzip.c -- IO for uncompress .zip files using zlib
|
||||||
|
|
||||||
|
Modified for Quake III Arena to use the Z_Malloc() memory pool;
|
||||||
|
this means a system copy of minizip is not a suitable replacement.
|
||||||
|
|
||||||
|
Based on minizip:
|
||||||
|
|
||||||
Version 1.01e, February 12th, 2005
|
Version 1.01e, February 12th, 2005
|
||||||
|
|
||||||
Copyright (C) 1998-2005 Gilles Vollant
|
Copyright (C) 1998-2005 Gilles Vollant
|
||||||
|
|
|
@ -346,7 +346,7 @@ void RB_MDRSurfaceAnim( mdrSurface_t *surface )
|
||||||
oldFrame = (mdrFrame_t *)((byte *)header + header->ofsFrames +
|
oldFrame = (mdrFrame_t *)((byte *)header + header->ofsFrames +
|
||||||
backEnd.currentEntity->e.oldframe * frameSize );
|
backEnd.currentEntity->e.oldframe * frameSize );
|
||||||
|
|
||||||
RB_CheckOverflow( surface->numVerts, surface->numTriangles );
|
RB_CHECKOVERFLOW( surface->numVerts, surface->numTriangles * 3 );
|
||||||
|
|
||||||
triangles = (int *) ((byte *)surface + surface->ofsTriangles);
|
triangles = (int *) ((byte *)surface + surface->ofsTriangles);
|
||||||
indexes = surface->numTriangles * 3;
|
indexes = surface->numTriangles * 3;
|
||||||
|
|
|
@ -350,7 +350,7 @@ void RB_MDRSurfaceAnim( mdrSurface_t *surface )
|
||||||
oldFrame = (mdrFrame_t *)((byte *)header + header->ofsFrames +
|
oldFrame = (mdrFrame_t *)((byte *)header + header->ofsFrames +
|
||||||
backEnd.currentEntity->e.oldframe * frameSize );
|
backEnd.currentEntity->e.oldframe * frameSize );
|
||||||
|
|
||||||
RB_CheckOverflow( surface->numVerts, surface->numTriangles );
|
RB_CHECKOVERFLOW( surface->numVerts, surface->numTriangles * 3 );
|
||||||
|
|
||||||
triangles = (int *) ((byte *)surface + surface->ofsTriangles);
|
triangles = (int *) ((byte *)surface + surface->ofsTriangles);
|
||||||
indexes = surface->numTriangles * 3;
|
indexes = surface->numTriangles * 3;
|
||||||
|
|
|
@ -225,7 +225,7 @@ uint16_t FloatToHalf(float in)
|
||||||
|
|
||||||
f32.f = in;
|
f32.f = in;
|
||||||
|
|
||||||
f16.pack.exponent = CLAMP(f32.pack.exponent - 112, 0, 31);
|
f16.pack.exponent = CLAMP((int)(f32.pack.exponent) - 112, 0, 31);
|
||||||
f16.pack.fraction = f32.pack.fraction >> 13;
|
f16.pack.fraction = f32.pack.fraction >> 13;
|
||||||
f16.pack.sign = f32.pack.sign;
|
f16.pack.sign = f32.pack.sign;
|
||||||
|
|
||||||
|
|
|
@ -2714,7 +2714,7 @@ void R_CreateBuiltinImages( void ) {
|
||||||
{
|
{
|
||||||
for( x = 0; x < MAX_DLIGHTS; x++)
|
for( x = 0; x < MAX_DLIGHTS; x++)
|
||||||
{
|
{
|
||||||
tr.shadowCubemaps[x] = R_CreateImage(va("*shadowcubemap%i", x), (byte *)data, PSHADOW_MAP_SIZE, PSHADOW_MAP_SIZE, IMGTYPE_COLORALPHA, IMGFLAG_CLAMPTOEDGE | IMGFLAG_CUBEMAP, 0);
|
tr.shadowCubemaps[x] = R_CreateImage(va("*shadowcubemap%i", x), NULL, PSHADOW_MAP_SIZE, PSHADOW_MAP_SIZE, IMGTYPE_COLORALPHA, IMGFLAG_CLAMPTOEDGE | IMGFLAG_CUBEMAP, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue