From 42bcf2da7c43e6b7820be0072915fed1aa2305d0 Mon Sep 17 00:00:00 2001 From: Kevin Shanahan Date: Tue, 20 Aug 2013 09:30:26 +0930 Subject: [PATCH] common: rename HEADER_LUMPS -> BSP_LUMPS Signed-off-by: Kevin Shanahan --- common/bspfile.c | 2 +- include/common/bspfile.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/bspfile.c b/common/bspfile.c index aabbeb86..9f3a4cbe 100644 --- a/common/bspfile.c +++ b/common/bspfile.c @@ -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); } diff --git a/include/common/bspfile.h b/include/common/bspfile.h index f9d41181..bc629fad 100644 --- a/include/common/bspfile.h +++ b/include/common/bspfile.h @@ -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 {