2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-23 18:29:36 +01:00

server: fix some missing newlines in alerts

This commit is contained in:
Alibek Omarov 2024-08-14 11:45:21 +03:00 committed by Andrey Akhmichin
parent a3b2931441
commit 27dff8ba3f
11 changed files with 31 additions and 31 deletions

View File

@ -480,7 +480,7 @@ int FindTransition( void *pmodel, int iEndingAnim, int iGoalAnim, int *piDir )
}
}
ALERT( at_console, "error in transition graph" );
ALERT( at_console, "error in transition graph\n" );
return iGoalAnim;
}

View File

@ -98,7 +98,7 @@ void CCycler::GenericCyclerSpawn( const char *szModel, Vector vecMin, Vector vec
{
if( !szModel || !*szModel )
{
ALERT( at_error, "cycler at %.0f %.0f %0.f missing modelname", (double)pev->origin.x, (double)pev->origin.y, (double)pev->origin.z );
ALERT( at_error, "cycler at %.0f %.0f %0.f missing modelname\n", (double)pev->origin.x, (double)pev->origin.y, (double)pev->origin.z );
REMOVE_ENTITY( ENT( pev ) );
return;
}

View File

@ -2087,7 +2087,7 @@ void CBaseMonster::StartMonster( void )
if( !m_pGoalEnt )
{
ALERT( at_error, "ReadyMonster()--%s couldn't find target %s", STRING( pev->classname ), STRING( pev->target ) );
ALERT( at_error, "ReadyMonster()--%s couldn't find target %s\n", STRING( pev->classname ), STRING( pev->target ) );
}
else
{
@ -2099,7 +2099,7 @@ void CBaseMonster::StartMonster( void )
// At this point, we expect only a path_corner as initial goal
if( !FClassnameIs( m_pGoalEnt->pev, "path_corner" ) )
{
ALERT( at_warning, "ReadyMonster--monster's initial goal '%s' is not a path_corner", STRING( pev->target ) );
ALERT( at_warning, "ReadyMonster--monster's initial goal '%s' is not a path_corner\n", STRING( pev->target ) );
}
#endif
// set the monster up to walk a path corner path.

View File

@ -367,7 +367,7 @@ void COsprey::UpdateGoal()
}
else
{
ALERT( at_console, "osprey missing target" );
ALERT( at_console, "osprey missing target\n" );
}
}

View File

@ -93,13 +93,13 @@ void CPathCorner::Touch( CBaseEntity *pOther )
// UNDONE: support non-zero flWait
/*
if( m_flWait != 0 )
ALERT( at_warning, "Non-zero path-cornder waits NYI" );
ALERT( at_warning, "Non-zero path-cornder waits NYI\n" );
*/
// Find the next "stop" on the path, make it the goal of the "toucher".
if( FStringNull( pev->target ) )
{
ALERT( at_warning, "PathCornerTouch: no next stop specified" );
ALERT( at_warning, "PathCornerTouch: no next stop specified\n" );
}
pOther->m_pGoalEnt = CBaseEntity::Instance( FIND_ENTITY_BY_TARGETNAME( NULL, STRING( pev->target ) ) );
@ -107,7 +107,7 @@ void CPathCorner::Touch( CBaseEntity *pOther )
// If "next spot" was not found (does not exist - level design error)
if( !pOther->m_pGoalEnt )
{
ALERT( at_console, "PathCornerTouch--%s couldn't find next stop in path: %s", STRING( pev->classname ), STRING( pev->target ) );
ALERT( at_console, "PathCornerTouch--%s couldn't find next stop in path: %s\n", STRING( pev->classname ), STRING( pev->target ) );
return;
}
@ -375,7 +375,7 @@ CPathTrack *CPathTrack::Nearest( Vector origin )
deadCount++;
if( deadCount > 9999 )
{
ALERT( at_error, "Bad sequence of path_tracks from %s", STRING( pev->targetname ) );
ALERT( at_error, "Bad sequence of path_tracks from %s\n", STRING( pev->targetname ) );
return NULL;
}
delta = origin - ppath->pev->origin;

View File

@ -816,7 +816,7 @@ void CFuncTrain::Spawn( void )
pev->speed = 100;
if( FStringNull(pev->target) )
ALERT( at_console, "FuncTrain with no target" );
ALERT( at_console, "FuncTrain with no target\n" );
if( pev->dmg == 0 )
pev->dmg = 2;
@ -1441,7 +1441,7 @@ void CFuncTrackTrain::Spawn( void )
m_dir = 1;
if( FStringNull( pev->target ) )
ALERT( at_console, "FuncTrain with no target" );
ALERT( at_console, "FuncTrain with no target\n" );
if( pev->spawnflags & SF_TRACKTRAIN_PASSABLE )
pev->solid = SOLID_NOT;

View File

@ -2869,7 +2869,7 @@ edict_t *EntSelectSpawnPoint( CBaseEntity *pPlayer )
ReturnSpot:
if( FNullEnt( pSpot ) )
{
ALERT( at_error, "PutClientInServer: no info_player_start on level" );
ALERT( at_error, "PutClientInServer: no info_player_start on level\n" );
return INDEXENT( 0 );
}

View File

@ -429,7 +429,7 @@ void CCineAI::PossessEntity( void )
pTarget->pev->flags &= ~FL_ONGROUND;
break;
default:
ALERT( at_aiconsole, "aiscript: invalid Move To Position value!" );
ALERT( at_aiconsole, "aiscript: invalid Move To Position value!\n" );
break;
}

View File

@ -1053,7 +1053,7 @@ void CTriggerMultiple::Spawn( void )
if( pev->health > 0 )
{
if( FBitSet( pev->spawnflags, SPAWNFLAG_NOTOUCH ) )
ALERT( at_error, "trigger_multiple spawn: health and notouch don't make sense" );
ALERT( at_error, "trigger_multiple spawn: health and notouch don't make sense\n" );
pev->max_health = pev->health;
UNDONE: where to get pfnDie from?
pev->pfnDie = multi_killed;
@ -1206,16 +1206,16 @@ void CBaseTrigger::CounterUse( CBaseEntity *pActivator, CBaseEntity *pCaller, US
switch( m_cTriggersLeft )
{
case 1:
ALERT( at_console, "Only 1 more to go..." );
ALERT( at_console, "Only 1 more to go...\n" );
break;
case 2:
ALERT( at_console, "Only 2 more to go..." );
ALERT( at_console, "Only 2 more to go...\n" );
break;
case 3:
ALERT( at_console, "Only 3 more to go..." );
ALERT( at_console, "Only 3 more to go...\n" );
break;
default:
ALERT( at_console, "There are more to go..." );
ALERT( at_console, "There are more to go...\n" );
break;
}
}
@ -1224,7 +1224,7 @@ void CBaseTrigger::CounterUse( CBaseEntity *pActivator, CBaseEntity *pCaller, US
// !!!UNDONE: I don't think we want these Quakesque messages
if( fTellActivator )
ALERT( at_console, "Sequence completed!" );
ALERT( at_console, "Sequence completed!\n" );
ActivateMultiTrigger( m_hActivator );
}
@ -1384,7 +1384,7 @@ When the player touches this, he gets sent to the map listed in the "map" variab
void CChangeLevel::Spawn( void )
{
if( FStrEq( m_szMapName, "" ) )
ALERT( at_console, "a trigger_changelevel doesn't have a map" );
ALERT( at_console, "a trigger_changelevel doesn't have a map\n" );
if( FStrEq( m_szLandmarkName, "" ) )
ALERT( at_console, "trigger_changelevel to %s doesn't have a landmark\n", m_szMapName );
@ -1648,7 +1648,7 @@ int CChangeLevel::ChangeList( LEVELLIST *pLevelList, int maxList )
entityFlags[entityCount] = flags;
entityCount++;
if( entityCount > MAX_ENTITY )
ALERT( at_error, "Too many entities across a transition!" );
ALERT( at_error, "Too many entities across a transition!\n" );
}
//else
// ALERT( at_console, "Failed %s\n", STRING( pEntity->pev->classname ) );

View File

@ -314,10 +314,10 @@ edict_t *DBG_EntOfVars( const entvars_t *pev )
{
if( pev->pContainingEntity != NULL )
return pev->pContainingEntity;
ALERT( at_console, "entvars_t pContainingEntity is NULL, calling into engine" );
ALERT( at_console, "entvars_t pContainingEntity is NULL, calling into engine\n" );
edict_t *pent = (*g_engfuncs.pfnFindEntityByVars)( (entvars_t*)pev );
if( pent == NULL )
ALERT( at_console, "DAMN! Even the engine couldn't FindEntityByVars!" );
ALERT( at_console, "DAMN! Even the engine couldn't FindEntityByVars!\n" );
( (entvars_t *)pev )->pContainingEntity = pent;
return pent;
}
@ -1748,7 +1748,7 @@ unsigned short CSaveRestoreBuffer::TokenHash( const char *pszToken )
static int tokensparsed = 0;
tokensparsed++;
if( !m_pdata->tokenCount || !m_pdata->pTokens )
ALERT( at_error, "No token table array in TokenHash()!" );
ALERT( at_error, "No token table array in TokenHash()!\n" );
#endif
for( int i = 0; i < m_pdata->tokenCount; i++ )
{
@ -1757,7 +1757,7 @@ unsigned short CSaveRestoreBuffer::TokenHash( const char *pszToken )
if( i > 50 && !beentheredonethat )
{
beentheredonethat = TRUE;
ALERT( at_error, "CSaveRestoreBuffer :: TokenHash() is getting too full!" );
ALERT( at_error, "CSaveRestoreBuffer :: TokenHash() is getting too full!\n" );
}
#endif
int index = hash + i;
@ -1773,7 +1773,7 @@ unsigned short CSaveRestoreBuffer::TokenHash( const char *pszToken )
// Token hash table full!!!
// [Consider doing overflow table(s) after the main table & limiting linear hash table search]
ALERT( at_error, "CSaveRestoreBuffer :: TokenHash() is COMPLETELY FULL!" );
ALERT( at_error, "CSaveRestoreBuffer :: TokenHash() is COMPLETELY FULL!\n" );
return 0;
}
@ -2086,7 +2086,7 @@ void CSave::BufferHeader( const char *pname, int size )
{
short hashvalue = TokenHash( pname );
if( size > 1 << ( sizeof(short) * 8 ) )
ALERT( at_error, "CSave :: BufferHeader() size parameter exceeds 'short'!" );
ALERT( at_error, "CSave :: BufferHeader() size parameter exceeds 'short'!\n" );
BufferData( (const char *)&size, sizeof(short) );
BufferData( (const char *)&hashvalue, sizeof(short) );
}
@ -2098,7 +2098,7 @@ void CSave::BufferData( const char *pdata, int size )
if( m_pdata->size + size > m_pdata->bufferSize )
{
ALERT( at_error, "Save/Restore overflow!" );
ALERT( at_error, "Save/Restore overflow!\n" );
m_pdata->size = m_pdata->bufferSize;
return;
}
@ -2404,7 +2404,7 @@ void CRestore::BufferReadBytes( char *pOutput, int size )
if( ( m_pdata->size + size ) > m_pdata->bufferSize )
{
ALERT( at_error, "Restore overflow!" );
ALERT( at_error, "Restore overflow!\n" );
m_pdata->size = m_pdata->bufferSize;
return;
}

View File

@ -886,7 +886,7 @@ void CFuncVehicle::Spawn()
if( FStringNull( pev->target ))
{
ALERT( at_console, "Vehicle with no target" );
ALERT( at_console, "Vehicle with no target\n" );
}
if( pev->spawnflags & SF_TRACKTRAIN_PASSABLE )
@ -927,7 +927,7 @@ void CFuncVehicle::Restart()
if( FStringNull( pev->target ))
{
ALERT( at_console, "Vehicle with no target" );
ALERT( at_console, "Vehicle with no target\n" );
}
UTIL_SetOrigin( pev, pev->oldorigin );