diff --git a/source/Makefile b/source/Makefile index c861139..ae2b62c 100644 --- a/source/Makefile +++ b/source/Makefile @@ -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 \ diff --git a/source/model.c b/source/model.c index 6e762e0..fb5d173 100644 --- a/source/model.c +++ b/source/model.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 } // diff --git a/source/sv_model.c b/source/sv_model.c new file mode 100644 index 0000000..ca01360 --- /dev/null +++ b/source/sv_model.c @@ -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) +{ +}