Skip to content

Commit c1b2ab6

Browse files
committed
Fix NPC behaviors not appending ent_text
1 parent 6cc2937 commit c1b2ab6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

sp/src/game/server/ai_basenpc.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10689,9 +10689,15 @@ int CAI_BaseNPC::DrawDebugTextOverlays(void)
1068910689
CAI_BehaviorBase *pBehavior = GetRunningBehavior();
1069010690
if ( pBehavior )
1069110691
{
10692+
#ifdef MAPBASE
10693+
// CAI_BehaviorBase::DrawDebugTextOverlays prints identical text, but wasn't used
10694+
// This change allows behaviors to print their own debug text
10695+
text_offset = pBehavior->DrawDebugTextOverlays( text_offset );
10696+
#else
1069210697
Q_snprintf(tempstr,sizeof(tempstr),"Behv: %s, ", pBehavior->GetName() );
1069310698
EntityText(text_offset,tempstr,0);
1069410699
text_offset++;
10700+
#endif
1069510701
}
1069610702

1069710703
const char *pName = NULL;

0 commit comments

Comments
 (0)