From 5baf5deca76bf8fd0fe5bc9b26046f18a5c87d36 Mon Sep 17 00:00:00 2001 From: leffmann Date: Sun, 11 Oct 2015 14:26:10 +0200 Subject: [PATCH] make base build with Visual Studio 14 --- game/SecurityCamera.cpp | 2 +- game/ai/AI.cpp | 2 +- game/gamesys/SysCmds.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/game/SecurityCamera.cpp b/game/SecurityCamera.cpp index c16405a..36a0cbe 100644 --- a/game/SecurityCamera.cpp +++ b/game/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/game/ai/AI.cpp b/game/ai/AI.cpp index cc99b87..2ac9948 100644 --- a/game/ai/AI.cpp +++ b/game/ai/AI.cpp @@ -2148,7 +2148,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/game/gamesys/SysCmds.cpp b/game/gamesys/SysCmds.cpp index 670a90c..732d506 100644 --- a/game/gamesys/SysCmds.cpp +++ b/game/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() ); } }