diff --git a/d3xp/SecurityCamera.cpp b/d3xp/SecurityCamera.cpp index c16405a..36a0cbe 100644 --- a/d3xp/SecurityCamera.cpp +++ b/d3xp/SecurityCamera.cpp @@ -140,7 +140,7 @@ void idSecurityCamera::Spawn( void ) { } negativeSweep = ( sweepAngle < 0 ) ? true : false; - sweepAngle = abs( sweepAngle ); + sweepAngle = idMath::Fabs( sweepAngle ); scanFovCos = cos( scanFov * idMath::PI / 360.0f ); diff --git a/d3xp/ai/AI.cpp b/d3xp/ai/AI.cpp index 1353689..887594b 100644 --- a/d3xp/ai/AI.cpp +++ b/d3xp/ai/AI.cpp @@ -2233,7 +2233,7 @@ bool idAI::NewWanderDir( const idVec3 &dest ) { } // try other directions - if ( ( gameLocal.random.RandomInt() & 1 ) || abs( deltay ) > abs( deltax ) ) { + if ( ( gameLocal.random.RandomInt() & 1 ) || idMath::Fabs( deltay ) > idMath::Fabs( deltax ) ) { tdir = d[ 1 ]; d[ 1 ] = d[ 2 ]; d[ 2 ] = tdir; diff --git a/d3xp/gamesys/SysCmds.cpp b/d3xp/gamesys/SysCmds.cpp index 8dc894a..9871fe0 100644 --- a/d3xp/gamesys/SysCmds.cpp +++ b/d3xp/gamesys/SysCmds.cpp @@ -140,7 +140,7 @@ void Cmd_ListSpawnArgs_f( const idCmdArgs &args ) { for ( i = 0; i < ent->spawnArgs.GetNumKeyVals(); i++ ) { const idKeyValue *kv = ent->spawnArgs.GetKeyVal( i ); - gameLocal.Printf( "\"%s\" "S_COLOR_WHITE"\"%s\"\n", kv->GetKey().c_str(), kv->GetValue().c_str() ); + gameLocal.Printf( "\"%s\" " S_COLOR_WHITE "\"%s\"\n", kv->GetKey().c_str(), kv->GetValue().c_str() ); } }