mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-13 04:09:09 +00:00
add source-sdk-2013
This commit is contained in:
@@ -91,7 +91,8 @@ void CFuncNavCost::Spawn( void )
|
||||
// chop space-delimited string into individual tokens
|
||||
if ( tags )
|
||||
{
|
||||
char *buffer = V_strdup ( tags );
|
||||
char *buffer = new char [ strlen( tags ) + 1 ];
|
||||
Q_strcpy( buffer, tags );
|
||||
|
||||
for( char *token = strtok( buffer, " " ); token; token = strtok( NULL, " " ) )
|
||||
{
|
||||
@@ -397,10 +398,7 @@ int CFuncNavBlocker::DrawDebugTextOverlays( void )
|
||||
CNavArea *area = collector.m_area[i];
|
||||
Extent areaExtent;
|
||||
area->GetExtent( &areaExtent );
|
||||
if ( debugoverlay )
|
||||
{
|
||||
debugoverlay->AddBoxOverlay( vec3_origin, areaExtent.lo, areaExtent.hi, vec3_angle, 0, 255, 0, 10, NDEBUG_PERSIST_TILL_NEXT_SERVER );
|
||||
}
|
||||
debugoverlay->AddBoxOverlay( vec3_origin, areaExtent.lo, areaExtent.hi, vec3_angle, 0, 255, 0, 10, NDEBUG_PERSIST_TILL_NEXT_SERVER );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user