diff --git a/qbsp/map.c b/qbsp/map.c index 24487156..a5732f46 100644 --- a/qbsp/map.c +++ b/qbsp/map.c @@ -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; diff --git a/qbsp/qbsp.h b/qbsp/qbsp.h index fe16dde5..4ab72f25 100644 --- a/qbsp/qbsp.h +++ b/qbsp/qbsp.h @@ -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);