_snprintf -> snprintf

This commit is contained in:
Jonathan Gray 2013-04-23 19:45:35 +10:00
parent a72f2af77e
commit 8096cb839d
3 changed files with 9 additions and 9 deletions

View file

@ -1224,14 +1224,14 @@ qboolean G_SetG2PlayerModelInfo( gentity_t *ent, const char *modelName, const ch
// Setup the Exhausts.
for ( int i = 0; i < MAX_VEHICLE_EXHAUSTS; i++ )
{
_snprintf( strTemp, 128, "*exhaust%d", i + 1 );
snprintf( strTemp, 128, "*exhaust%d", i + 1 );
ent->m_pVehicle->m_iExhaustTag[i] = gi.G2API_AddBolt( &ent->ghoul2[ent->playerModel], strTemp );
}
// Setup the Muzzles.
for ( int i = 0; i < MAX_VEHICLE_MUZZLES; i++ )
{
_snprintf( strTemp, 128, "*muzzle%d", i + 1 );
snprintf( strTemp, 128, "*muzzle%d", i + 1 );
ent->m_pVehicle->m_iMuzzleTag[i] = gi.G2API_AddBolt( &ent->ghoul2[ent->playerModel], strTemp );
}
}

View file

@ -709,7 +709,7 @@ void SP_CreatePuffSystem( gentity_t *ent )
continue;
// Send the command.
_snprintf( temp, 128, "puff%i %s %s", iPuffSystem, key, value );
snprintf( temp, 128, "puff%i %s %s", iPuffSystem, key, value );
G_FindConfigstringIndex( temp, CS_WORLD_FX, MAX_WORLD_FX, qtrue );
}
}
@ -1233,4 +1233,4 @@ void SP_fx_cloudlayer( gentity_t *ent )
VectorScale( ent->maxs, -1, ent->mins );
gi.linkentity( ent );
}
}

View file

@ -516,7 +516,7 @@ GOBError GOBArchiveCreate(const GOBChar* file)
}
// create an empty GFC
_snprintf(ControlFileName, GOB_MAX_FILE_NAME_LEN, "%s.gfc", file);
snprintf(ControlFileName, GOB_MAX_FILE_NAME_LEN, "%s.gfc", file);
ArchiveSize = 0;
ArchiveNumBlocks = 0;
@ -526,7 +526,7 @@ GOBError GOBArchiveCreate(const GOBChar* file)
CommitFileTable();
// create an empty GOB
_snprintf(fname, GOB_MAX_FILE_NAME_LEN, "%s.gob", file);
snprintf(fname, GOB_MAX_FILE_NAME_LEN, "%s.gob", file);
handle = FSFuncs.open(fname, GOBACCESS_WRITE);
if (InvalidHandle(handle)) return GOBERR_CANNOT_CREATE;
@ -550,7 +550,7 @@ GOBError GOBArchiveOpen(const GOBChar* file, GOBAccessType atype,
if (!InvalidHandle(ArchiveHandle)) return GOBERR_ALREADY_OPEN;
// open the GFC
_snprintf(ControlFileName, GOB_MAX_FILE_NAME_LEN, "%s.gfc", file);
snprintf(ControlFileName, GOB_MAX_FILE_NAME_LEN, "%s.gfc", file);
handle = FSFuncs.open(ControlFileName, atype);
if (InvalidHandle(handle)) return GOBERR_FILE_NOT_FOUND;
@ -663,7 +663,7 @@ GOBError GOBArchiveOpen(const GOBChar* file, GOBAccessType atype,
FSFuncs.close(&handle);
// open the GOB
_snprintf(fname, GOB_MAX_FILE_NAME_LEN, "%s.gob", file);
snprintf(fname, GOB_MAX_FILE_NAME_LEN, "%s.gob", file);
ArchiveHandle = FSFuncs.open(fname, atype);
if (InvalidHandle(ArchiveHandle)) return GOBERR_FILE_NOT_FOUND;
@ -1592,7 +1592,7 @@ GOBError GOBRearrange(const GOBChar* file, const GOBUInt32* xlat, GOBFileSysRena
FSFuncs.close(&temp_handle);
// overrwrite archive with temp file
_snprintf(full_name, GOB_MAX_FILE_NAME_LEN, "%s.gob", file);
snprintf(full_name, GOB_MAX_FILE_NAME_LEN, "%s.gob", file);
if (_rename("~temp.tmp", full_name)) return GOBERR_FILE_RENAME;
ArchiveSize = size;