From 61aee9ed297d75eb19fe37401bce5281c7497adc 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 --- neo/game/SecurityCamera.cpp | 2 +- neo/game/ai/AI.cpp | 2 +- neo/game/gamesys/SysCmds.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/neo/game/SecurityCamera.cpp b/neo/game/SecurityCamera.cpp index c16405ac..36a0cbe0 100644 --- a/neo/game/SecurityCamera.cpp +++ b/neo/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/neo/game/ai/AI.cpp b/neo/game/ai/AI.cpp index cc99b87b..2ac99486 100644 --- a/neo/game/ai/AI.cpp +++ b/neo/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/neo/game/gamesys/SysCmds.cpp b/neo/game/gamesys/SysCmds.cpp index 670a90cf..732d5067 100644 --- a/neo/game/gamesys/SysCmds.cpp +++ b/neo/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() ); } }