MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / SetString

Method SetString

neo/d3xp/script/Script_Program.cpp:729–738  ·  view source on GitHub ↗

============ idVarDef::SetString ============ */

Source from the content-addressed store, hash-verified

727============
728*/
729void idVarDef::SetString( const char *string, bool constant ) {
730 if ( constant ) {
731 initialized = initializedConstant;
732 } else {
733 initialized = initializedVariable;
734 }
735
736 assert( typeDef && ( typeDef->Type() == ev_string ) );
737 idStr::Copynz( value.stringPtr, string, MAX_STRING_LEN );
738}
739
740/*
741============

Callers 6

NextMapMethod · 0.45
ExecuteVoteMethod · 0.45
SetBestGametypeMethod · 0.45
SingleViewMethod · 0.45
GetImmediateMethod · 0.45
ParseVariableDefMethod · 0.45

Calls 1

TypeMethod · 0.45

Tested by

no test coverage detected