MCPcopy Create free account
hub / github.com/CytopiaTeam/Cytopia / OverwriteCode

Method OverwriteCode

external/as_add_on/scriptbuilder/scriptbuilder.cpp:825–834  ·  view source on GitHub ↗

Overwrite all characters except line breaks with blanks

Source from the content-addressed store, hash-verified

823
824// Overwrite all characters except line breaks with blanks
825void CScriptBuilder::OverwriteCode(int start, int len)
826{
827 char *code = &modifiedScript[start];
828 for( int n = 0; n < len; n++ )
829 {
830 if( *code != '\n' )
831 *code = ' ';
832 code++;
833 }
834}
835
836#if AS_PROCESS_METADATA == 1
837int CScriptBuilder::ExtractMetadata(int pos, vector<string> &metadata)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected