fixed windows build

This commit is contained in:
David Anderson 2007-04-25 14:15:00 +00:00
parent d679885985
commit 8f49cddd7d

View File

@ -408,19 +408,19 @@ int C_Spawn(edict_t *pent)
strncpy(temporaryMap,STRING(gpGlobals->mapname),sizeof(temporaryMap)-1); strncpy(temporaryMap,STRING(gpGlobals->mapname),sizeof(temporaryMap)-1);
int i=0; int ii=0;
while (temporaryMap[i]!='_' && temporaryMap[i]!='\0') while (temporaryMap[ii]!='_' && temporaryMap[ii]!='\0')
{ {
++i; ++ii;
} }
if (temporaryMap[i]=='_') if (temporaryMap[ii]=='_')
{ {
// this map has a prefix // this map has a prefix
temporaryMap[i]='\0'; temporaryMap[ii]='\0';
snprintf(map_pluginsfile_path, sizeof(map_pluginsfile_path)-1, snprintf(map_pluginsfile_path, sizeof(map_pluginsfile_path)-1,
"%s/maps/prefixes/plugins-%s.ini", "%s/maps/prefixes/plugins-%s.ini",
configs_dir, configs_dir,