From 4050fefcefd5cf5d0dc562463026c9c9058cfc6f Mon Sep 17 00:00:00 2001 From: Roman Chistokhodov Date: Sat, 14 May 2022 18:30:30 +0300 Subject: [PATCH] Don't print 'Node Graph out of Date' messages in non-developer mode --- dlls/nodes.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/nodes.cpp b/dlls/nodes.cpp index 42ff240496..8c48c815f1 100644 --- a/dlls/nodes.cpp +++ b/dlls/nodes.cpp @@ -24,6 +24,7 @@ #include "nodes_compat.h" #include "animation.h" #include "doors.h" +#include "game.h" #define HULL_STEP_SIZE 16// how far the test hull moves on each step #define NODE_HEIGHT 8 // how high to lift nodes off the ground after we drop them all (make stair/ramp mapping easier) @@ -1534,7 +1535,8 @@ void CTestHull::Spawn( entvars_t *pevMasterNode ) //========================================================= void CTestHull::DropDelay( void ) { - UTIL_CenterPrintAll( "Node Graph out of Date. Rebuilding..." ); + if (g_psv_developer && g_psv_developer->value) + UTIL_CenterPrintAll( "Node Graph out of Date. Rebuilding..." ); UTIL_SetOrigin( VARS( pev ), WorldGraph.m_pNodes[0].m_vecOrigin );