qbsp: constify argument to FindMiptex()
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
parent
e3752dc02d
commit
d17622ab48
|
|
@ -33,18 +33,18 @@ static int rgfStartSpots;
|
|||
|
||||
|
||||
int
|
||||
FindMiptex(char *szName)
|
||||
FindMiptex(const char *name)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < cMiptex; i++) {
|
||||
if (!strcmp(szName, rgszMiptex[i]))
|
||||
if (!strcmp(name, rgszMiptex[i]))
|
||||
return i;
|
||||
}
|
||||
strcpy(rgszMiptex[i], szName);
|
||||
strcpy(rgszMiptex[i], name);
|
||||
cMiptex++;
|
||||
|
||||
if (szName[0] == '+')
|
||||
if (name[0] == '+')
|
||||
cAnimtex++;
|
||||
|
||||
return i;
|
||||
|
|
|
|||
|
|
@ -630,7 +630,7 @@ extern plane_t *pPlanes;
|
|||
|
||||
void LoadMapFile(void);
|
||||
|
||||
int FindMiptex(char *name);
|
||||
int FindMiptex(const char *name);
|
||||
|
||||
void PrintEntity(const mapentity_t *ent);
|
||||
const char *ValueForKey(const mapentity_t *ent, const char *key);
|
||||
|
|
|
|||
Loading…
Reference in New Issue