MCPcopy Create free account
hub / github.com/BSVino/DoubleAction / TokenWaiting

Function TokenWaiting

mp/src/game/server/AI_ResponseSystem.cpp:637–667  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

635 }
636
637 inline bool TokenWaiting( void )
638 {
639 if ( m_ScriptStack.Count() <= 0 )
640 {
641 Assert( 0 );
642 return false;
643 }
644
645 const char *p = m_ScriptStack[ 0 ].currenttoken;
646
647 if ( !p )
648 {
649 Error( "AI_ResponseSystem: Unxpected TokenWaiting() with NULL buffer in %p", m_ScriptStack[ 0 ].name );
650 return false;
651 }
652
653
654 while ( *p && *p!='\n')
655 {
656 // Special handler for // comment blocks
657 if ( *p == '/' && *(p+1) == '/' )
658 return false;
659
660 if ( !isspace( *p ) || isalnum( *p ) )
661 return true;
662
663 p++;
664 }
665
666 return false;
667 }
668
669 void ParseOneResponse( const char *responseGroupName, ResponseGroup& group );
670

Callers 3

ParseOneResponseMethod · 0.70
ParseOneCriterionMethod · 0.70
ParseRuleMethod · 0.70

Calls 3

AssertFunction · 0.85
ErrorFunction · 0.50
CountMethod · 0.45

Tested by

no test coverage detected