mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-17 01:21:12 +00:00
soft: sync code structure with gl1 and BSPX load
BSPX just loaded without real usage of light maps
This commit is contained in:
parent
e0f4da0103
commit
787e65fda4
2 changed files with 372 additions and 391 deletions
|
@ -26,14 +26,14 @@
|
|||
|
||||
#include "header/local.h"
|
||||
|
||||
#define MAX_MOD_KNOWN 512
|
||||
static YQ2_ALIGNAS_TYPE(int) byte mod_novis[MAX_MAP_LEAFS / 8];
|
||||
|
||||
int modfilelen;
|
||||
YQ2_ALIGNAS_TYPE(int) byte mod_novis[MAX_MAP_LEAFS / 8];
|
||||
static model_t mod_known[MAX_MOD_KNOWN];
|
||||
static int mod_numknown;
|
||||
static int mod_max = 0;
|
||||
int registration_sequence;
|
||||
#define MAX_MOD_KNOWN 512
|
||||
static model_t mod_known[MAX_MOD_KNOWN];
|
||||
static int mod_numknown;
|
||||
static int mod_max = 0;
|
||||
|
||||
int registration_sequence;
|
||||
|
||||
void LM_BuildPolygonFromSurface(model_t *currentmodel, msurface_t *fa);
|
||||
void LM_CreateSurfaceLightmap(msurface_t *surf);
|
||||
|
@ -127,7 +127,7 @@ Mod_Init(void)
|
|||
}
|
||||
|
||||
static void
|
||||
Mod_LoadSubmodels (model_t *loadmodel, const byte *mod_base, const lump_t *l)
|
||||
Mod_LoadSubmodels(model_t *loadmodel, const byte *mod_base, const lump_t *l)
|
||||
{
|
||||
dmodel_t *in;
|
||||
model_t *out;
|
||||
|
@ -886,7 +886,7 @@ Mod_LoadBrushModel(model_t *mod, const void *buffer, int modfilelen)
|
|||
|
||||
if (mod != mod_known)
|
||||
{
|
||||
ri.Sys_Error(ERR_DROP, "Loaded a brush model after the world");
|
||||
ri.Sys_Error(ERR_DROP, "%s: Loaded a brush model after the world", __func__);
|
||||
}
|
||||
|
||||
header = (dheader_t *)buffer;
|
||||
|
@ -1016,11 +1016,11 @@ Mod_LoadBrushModel(model_t *mod, const void *buffer, int modfilelen)
|
|||
* Loads in a model for the given name
|
||||
*/
|
||||
static model_t *
|
||||
Mod_ForName (const char *name, model_t *parent_model, qboolean crash)
|
||||
Mod_ForName(const char *name, model_t *parent_model, qboolean crash)
|
||||
{
|
||||
model_t *mod;
|
||||
void *buf;
|
||||
int i;
|
||||
int i, modfilelen;
|
||||
|
||||
if (!name[0])
|
||||
{
|
||||
|
@ -1068,7 +1068,7 @@ Mod_ForName (const char *name, model_t *parent_model, qboolean crash)
|
|||
{
|
||||
if (mod_numknown == MAX_MOD_KNOWN)
|
||||
{
|
||||
ri.Sys_Error(ERR_DROP, "mod_numknown == MAX_MOD_KNOWN");
|
||||
ri.Sys_Error(ERR_DROP, "%s: mod_numknown == MAX_MOD_KNOWN", __func__);
|
||||
}
|
||||
|
||||
mod_numknown++;
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue