mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-03-13 03:33:28 +00:00
no more SERVERONLY in model.c :)
This commit is contained in:
parent
da7fc52b3e
commit
5879669155
3 changed files with 23 additions and 6 deletions
|
@ -54,6 +54,7 @@ SV_sources=\
|
|||
sv_init.c \
|
||||
sv_main.c \
|
||||
sv_misc.c \
|
||||
sv_model.c \
|
||||
sv_nchan.c \
|
||||
sv_ents.c \
|
||||
sv_send.c \
|
||||
|
|
|
@ -39,6 +39,7 @@ void Mod_LoadSpriteModel (model_t *mod, void *buffer);
|
|||
void Mod_LoadBrushModel (model_t *mod, void *buffer);
|
||||
void Mod_LoadAliasModel (model_t *mod, void *buffer);
|
||||
model_t *Mod_LoadModel (model_t *mod, qboolean crash);
|
||||
void R_InitSky(struct texture_s *mt);
|
||||
|
||||
byte mod_novis[MAX_MAP_LEAFS/8];
|
||||
|
||||
|
@ -244,9 +245,6 @@ model_t *Mod_LoadModel (model_t *mod, qboolean crash)
|
|||
// call the apropriate loader
|
||||
mod->needload = false;
|
||||
|
||||
#ifdef SERVERONLY
|
||||
Mod_LoadBrushModel (mod, buf);
|
||||
#else
|
||||
switch (LittleLong(*(unsigned *)buf))
|
||||
{
|
||||
case IDPOLYHEADER:
|
||||
|
@ -261,7 +259,6 @@ model_t *Mod_LoadModel (model_t *mod, qboolean crash)
|
|||
Mod_LoadBrushModel (mod, buf);
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
||||
return mod;
|
||||
}
|
||||
|
@ -344,10 +341,9 @@ void Mod_LoadTextures (lump_t *l)
|
|||
tx->offsets[j] = mt->offsets[j] + sizeof(texture_t) - sizeof(miptex_t);
|
||||
// the pixels immediately follow the structures
|
||||
memcpy ( tx+1, mt+1, pixels);
|
||||
#ifndef SERVERONLY
|
||||
|
||||
if (!Q_strncmp(mt->name,"sky",3))
|
||||
R_InitSky (tx);
|
||||
#endif
|
||||
}
|
||||
|
||||
//
|
||||
|
|
20
source/sv_model.c
Normal file
20
source/sv_model.c
Normal file
|
@ -0,0 +1,20 @@
|
|||
#include "qwsvdef.h"
|
||||
|
||||
void Mod_LoadBrushModel (model_t *mod, void *buffer);
|
||||
|
||||
void
|
||||
Mod_LoadAliasModel(model_t *mod, void *buf)
|
||||
{
|
||||
Mod_LoadBrushModel (mod, buf);
|
||||
}
|
||||
|
||||
void
|
||||
Mod_LoadSpriteModel(model_t *mod, void *buf)
|
||||
{
|
||||
Mod_LoadBrushModel (mod, buf);
|
||||
}
|
||||
|
||||
void
|
||||
R_InitSky(struct texture_s *mt)
|
||||
{
|
||||
}
|
Loading…
Reference in a new issue