diff options
| author | John Schoenick <[email protected]> | 2015-09-09 18:35:41 -0700 |
|---|---|---|
| committer | John Schoenick <[email protected]> | 2015-09-09 18:35:41 -0700 |
| commit | 0d8dceea4310fde5706b3ce1c70609d72a38efdf (patch) | |
| tree | c831ef32c2c801a5c5a80401736b52c7b5a528ec /mp/src/game/server/nav_area.cpp | |
| parent | Updated the SDK with the latest code from the TF and HL2 branches. (diff) | |
| download | source-sdk-2013-master.tar.xz source-sdk-2013-master.zip | |
Diffstat (limited to 'mp/src/game/server/nav_area.cpp')
| -rw-r--r-- | mp/src/game/server/nav_area.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mp/src/game/server/nav_area.cpp b/mp/src/game/server/nav_area.cpp index 335e6c3b..656f675d 100644 --- a/mp/src/game/server/nav_area.cpp +++ b/mp/src/game/server/nav_area.cpp @@ -3707,7 +3707,7 @@ static Vector FindPositionInArea( CNavArea *area, NavCornerType corner ) pos = cornerPos + Vector( area->GetSizeX()*0.5f*multX, area->GetSizeY()*0.5f*multY, 0.0f ); if ( !area->IsOverlapping( pos ) ) { - AssertMsg( false, UTIL_VarArgs( "A Hiding Spot can't be placed on its area at (%.0f %.0f %.0f)", cornerPos.x, cornerPos.y, cornerPos.z) ); + AssertMsg( false, "A Hiding Spot can't be placed on its area at (%.0f %.0f %.0f)", cornerPos.x, cornerPos.y, cornerPos.z ); // Just pull the position to a small offset pos = cornerPos + Vector( 1.0f*multX, 1.0f*multY, 0.0f ); @@ -4285,6 +4285,9 @@ bool CNavArea::ComputeLighting( void ) //-------------------------------------------------------------------------------------------------------------- CON_COMMAND_F( nav_update_lighting, "Recomputes lighting values", FCVAR_CHEAT ) { + if ( !UTIL_IsCommandIssuedByServerAdmin() ) + return; + int numComputed = 0; if ( args.ArgC() == 2 ) { |