maps: remove currently unused fields

This commit is contained in:
Denis Pauk 2024-03-30 18:29:36 +02:00
parent d58e1493e3
commit c343f87928
5 changed files with 10 additions and 12 deletions

View File

@ -87,14 +87,13 @@ Goals (finished):
* support Anachronox .dat format, * support Anachronox .dat format,
* add debug progress loading code for maps. * add debug progress loading code for maps.
Goals (none of it finished): Goals (none of it finished):
* Single player support, * Single player support,
* support surface flags for Daikatana, Heretic 2, Anachronox, * Support effects and additional flags for ReRelease when possible.
* modified ReRelease game code support with removed KEX only related code.
Bonus goals: Bonus goals:
* Port SiN/Daikatana pack support from pakextract,
* support surface flags and content types for Daikatana, Heretic 2, Anachronox,
* Use shared model cache in client code insted reimplemnet in each render, * Use shared model cache in client code insted reimplemnet in each render,
* Check load soft colormap as 24bit color, * Check load soft colormap as 24bit color,
* Use separete texture hi-color buffer for ui in soft render, * Use separete texture hi-color buffer for ui in soft render,
@ -102,7 +101,8 @@ Bonus goals:
* Cleanup function declarations in game save code, * Cleanup function declarations in game save code,
* Use 3 bytes vertex normal, * Use 3 bytes vertex normal,
* Support scalled textures for models and walls in soft render and fix * Support scalled textures for models and walls in soft render and fix
lighting with remastered maps. lighting with remastered maps,
* modified ReRelease game code support with removed KEX only related code.
Not a goal: Not a goal:
* multiplayer protocol support with KEX engine, * multiplayer protocol support with KEX engine,

View File

@ -215,15 +215,15 @@ Mod_LoadValidateLumps(const char *name, const dheader_t *header)
{ {
if (header->lumps[s].filelen % rules[s]) if (header->lumps[s].filelen % rules[s])
{ {
Com_Printf("%s: lump #%d: incorrect size %d / %zd\n", Com_Printf("%s: Map %s lump #%d: incorrect size %d / %zd\n",
__func__, s, header->lumps[s].filelen, rules[s]); __func__, name, s, header->lumps[s].filelen, rules[s]);
error = true; error = true;
} }
#ifdef DEBUG #ifdef DEBUG
else else
{ {
Com_Printf("%s: lump #%d: correct size %d / %zd\n", Com_Printf("%s: Map %s lump #%d: correct size %d / %zd\n",
__func__, s, header->lumps[s].filelen, rules[s]); __func__, name, s, header->lumps[s].filelen, rules[s]);
} }
#endif #endif
} }

View File

@ -1370,7 +1370,6 @@ CMod_LoadSurfaces(const char *name, mapsurface_t **map_surfaces, int *numtexinfo
Q_strlcpy(out->c.name, in->texture, sizeof(out->c.name)); Q_strlcpy(out->c.name, in->texture, sizeof(out->c.name));
Q_strlcpy(out->rname, in->texture, sizeof(out->rname)); Q_strlcpy(out->rname, in->texture, sizeof(out->rname));
out->c.flags = LittleLong(in->flags); out->c.flags = LittleLong(in->flags);
out->c.value = LittleLong(in->value);
} }
} }

View File

@ -762,7 +762,7 @@ typedef struct texinfo_s
{ {
float vecs[2][4]; /* [s/t][xyz offset] */ float vecs[2][4]; /* [s/t][xyz offset] */
int flags; /* miptex flags + overrides light emission, etc */ int flags; /* miptex flags + overrides light emission, etc */
int value; int value; /* used with some flags, unused in Quake2 */
char texture[32]; /* texture name (textures*.wal) */ char texture[32]; /* texture name (textures*.wal) */
int nexttexinfo; /* for animations, -1 = end of chain */ int nexttexinfo; /* for animations, -1 = end of chain */
} texinfo_t; } texinfo_t;

View File

@ -561,7 +561,6 @@ typedef struct csurface_s
{ {
char name[16]; char name[16];
int flags; /* SURF_* */ int flags; /* SURF_* */
int value; /* unused */
} csurface_t; } csurface_t;
typedef struct mapsurface_s /* used internally due to name len probs */ typedef struct mapsurface_s /* used internally due to name len probs */