mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-24 05:21:20 +00:00
make base build with Visual Studio 14
This commit is contained in:
parent
99bbd70af5
commit
5baf5deca7
3 changed files with 3 additions and 3 deletions
|
@ -140,7 +140,7 @@ void idSecurityCamera::Spawn( void ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
negativeSweep = ( sweepAngle < 0 ) ? true : false;
|
negativeSweep = ( sweepAngle < 0 ) ? true : false;
|
||||||
sweepAngle = abs( sweepAngle );
|
sweepAngle = idMath::Fabs( sweepAngle );
|
||||||
|
|
||||||
scanFovCos = cos( scanFov * idMath::PI / 360.0f );
|
scanFovCos = cos( scanFov * idMath::PI / 360.0f );
|
||||||
|
|
||||||
|
|
|
@ -2148,7 +2148,7 @@ bool idAI::NewWanderDir( const idVec3 &dest ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// try other directions
|
// 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 ];
|
tdir = d[ 1 ];
|
||||||
d[ 1 ] = d[ 2 ];
|
d[ 1 ] = d[ 2 ];
|
||||||
d[ 2 ] = tdir;
|
d[ 2 ] = tdir;
|
||||||
|
|
|
@ -140,7 +140,7 @@ void Cmd_ListSpawnArgs_f( const idCmdArgs &args ) {
|
||||||
|
|
||||||
for ( i = 0; i < ent->spawnArgs.GetNumKeyVals(); i++ ) {
|
for ( i = 0; i < ent->spawnArgs.GetNumKeyVals(); i++ ) {
|
||||||
const idKeyValue *kv = ent->spawnArgs.GetKeyVal( 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() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue