mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
Fix some stuff that got lost when merging historic qs changes.
This commit is contained in:
parent
88db885ccc
commit
8b676fcb73
4 changed files with 18 additions and 13 deletions
|
@ -105,11 +105,11 @@ $(error Invalid MP3LIB setting)
|
|||
endif
|
||||
endif
|
||||
ifeq ($(MP3LIB),mad)
|
||||
mp3_obj=snd_mp3
|
||||
mp3_obj=snd_mp3.o
|
||||
lib_mp3dec=-lmad
|
||||
endif
|
||||
ifeq ($(MP3LIB),mpg123)
|
||||
mp3_obj=snd_mpg123
|
||||
mp3_obj=snd_mpg123.o
|
||||
lib_mp3dec=-lmpg123
|
||||
endif
|
||||
ifeq ($(VORBISLIB),vorbis)
|
||||
|
@ -202,8 +202,7 @@ MUSIC_OBJS:= bgmusic.o \
|
|||
snd_wave.o \
|
||||
snd_vorbis.o \
|
||||
snd_opus.o \
|
||||
$(mp3_obj).o \
|
||||
snd_mp3tag.o \
|
||||
$(mp3_obj) \
|
||||
snd_mikmod.o \
|
||||
snd_xmp.o \
|
||||
snd_umx.o
|
||||
|
|
|
@ -136,10 +136,10 @@ sys_socket_t UDP4_Listen (qboolean state)
|
|||
{
|
||||
// enable listening
|
||||
if (net_acceptsocket4 == INVALID_SOCKET)
|
||||
{
|
||||
{
|
||||
if ((net_acceptsocket4 = UDP4_OpenSocket (net_hostport)) == INVALID_SOCKET)
|
||||
Sys_Error ("UDP4_Listen: Unable to open accept socket");
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -1036,7 +1036,7 @@ void R_DrawAliasModel (entity_t *e)
|
|||
{
|
||||
aliasglsl_t *glsl;
|
||||
aliashdr_t *paliashdr;
|
||||
int i, anim;
|
||||
int i, anim, skinnum;
|
||||
gltexture_t *tx, *fb;
|
||||
lerpdata_t lerpdata;
|
||||
qboolean alphatest = !!(e->model->flags & MF_HOLEY);
|
||||
|
@ -1120,16 +1120,22 @@ void R_DrawAliasModel (entity_t *e)
|
|||
//
|
||||
GL_DisableMultitexture();
|
||||
anim = (int)(cl.time*10) & 3;
|
||||
if ((e->skinnum >= paliashdr->numskins) || (e->skinnum < 0))
|
||||
skinnum = e->skinnum;
|
||||
if ((skinnum >= paliashdr->numskins) || (skinnum < 0))
|
||||
{
|
||||
Con_DPrintf ("R_DrawAliasModel: no such skin # %d for '%s'\n", skinnum, e->model->name);
|
||||
// ericw -- display skin 0 for winquake compatibility
|
||||
skinnum = 0;
|
||||
}
|
||||
if (paliashdr->numskins <= 0)
|
||||
{
|
||||
Con_DPrintf ("R_DrawAliasModel: no such skin # %d for '%s'\n", e->skinnum, e->model->name);
|
||||
tx = NULL; // NULL will give the checkerboard texture
|
||||
fb = NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
tx = paliashdr->gltextures[e->skinnum][anim];
|
||||
fb = paliashdr->fbtextures[e->skinnum][anim];
|
||||
tx = paliashdr->gltextures[skinnum][anim];
|
||||
fb = paliashdr->fbtextures[skinnum][anim];
|
||||
}
|
||||
if (e->netstate.colormap && !gl_nocolors.value)
|
||||
{
|
||||
|
|
|
@ -392,8 +392,6 @@ void Sys_Error (const char *error, ...)
|
|||
va_list argptr;
|
||||
char text[1024];
|
||||
|
||||
Con_Redirect(NULL);
|
||||
PR_SwitchQCVM(NULL);
|
||||
host_parms->errstate++;
|
||||
|
||||
va_start (argptr, error);
|
||||
|
@ -401,6 +399,8 @@ void Sys_Error (const char *error, ...)
|
|||
va_end (argptr);
|
||||
|
||||
fputs (errortxt1, stderr);
|
||||
Con_Redirect(NULL);
|
||||
PR_SwitchQCVM(NULL);
|
||||
Host_Shutdown ();
|
||||
fputs (errortxt2, stderr);
|
||||
fputs (text, stderr);
|
||||
|
|
Loading…
Reference in a new issue