qbsp: pass entity pointer into PrintEntity()
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
parent
2c3e7509e6
commit
2f7809ddcb
|
|
@ -630,12 +630,12 @@ LoadMapFile(void)
|
|||
|
||||
|
||||
void
|
||||
PrintEntity(int iEntity)
|
||||
PrintEntity(const mapentity_t *ent)
|
||||
{
|
||||
epair_t *ep;
|
||||
epair_t *epair;
|
||||
|
||||
for (ep = map.rgEntities[iEntity].epairs; ep; ep = ep->next)
|
||||
Message(msgStat, "%20s : %s", ep->key, ep->value);
|
||||
for (epair = ent->epairs; epair; epair = epair->next)
|
||||
Message(msgStat, "%20s : %s", epair->key, epair->value);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ ProcessEntity(mapentity_t *ent)
|
|||
Message(msgProgress, "Internal Entities");
|
||||
sprintf(mod, "*%i", map.cTotal[BSPMODEL]);
|
||||
if (options.fVerbose)
|
||||
PrintEntity(map.iEntities);
|
||||
PrintEntity(ent);
|
||||
|
||||
if (hullnum == 0)
|
||||
Message(msgStat, "MODEL: %s", mod);
|
||||
|
|
@ -62,7 +62,7 @@ ProcessEntity(mapentity_t *ent)
|
|||
Brush_LoadEntity(ent);
|
||||
|
||||
if (!ent->brushes) {
|
||||
PrintEntity(map.iEntities);
|
||||
PrintEntity(ent);
|
||||
Error(errNoValidBrushes);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -631,7 +631,7 @@ void LoadMapFile(void);
|
|||
|
||||
int FindMiptex(char *name);
|
||||
|
||||
void PrintEntity(int iEntity);
|
||||
void PrintEntity(const mapentity_t *ent);
|
||||
const char *ValueForKey(const mapentity_t *ent, const char *key);
|
||||
void SetKeyValue(mapentity_t *ent, const char *key, const char *value);
|
||||
void GetVectorForKey(const mapentity_t *ent, const char *szKey, vec3_t vec);
|
||||
|
|
|
|||
Loading…
Reference in New Issue