common: rename HEADER_LUMPS -> BSP_LUMPS

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2013-08-20 09:30:26 +09:30
parent 9a2cd81b8c
commit 42bcf2da7c
2 changed files with 4 additions and 4 deletions

View File

@ -369,7 +369,7 @@ LoadBSPFile(const char *filename, bspdata_t *bsp)
Error("Sorry, only bsp version %d supported.", BSPVERSION);
/* swap the lump headers */
for (i = 0; i < HEADER_LUMPS; i++) {
for (i = 0; i < BSP_LUMPS; i++) {
header->lumps[i].fileofs = LittleLong(header->lumps[i].fileofs);
header->lumps[i].filelen = LittleLong(header->lumps[i].filelen);
}

View File

@ -72,14 +72,14 @@ typedef struct {
#define LUMP_SURFEDGES 13
#define LUMP_MODELS 14
#define HEADER_LUMPS 15
#define BSP_LUMPS 15
typedef struct {
const char *name;
size_t size;
} lumpspec_t;
extern const lumpspec_t lumpspec[HEADER_LUMPS];
extern const lumpspec_t lumpspec[BSP_LUMPS];
typedef struct {
float mins[3];
@ -93,7 +93,7 @@ typedef struct {
typedef struct {
int version;
lump_t lumps[HEADER_LUMPS];
lump_t lumps[BSP_LUMPS];
} dheader_t;
typedef struct {