MCPcopy Create free account
hub / github.com/JACoders/OpenJK / G_AddSpawnVarToken

Function G_AddSpawnVarToken

code/game/g_spawn.cpp:1183–1198  ·  view source on GitHub ↗

==================== G_AddSpawnVarToken ==================== */

Source from the content-addressed store, hash-verified

1181====================
1182*/
1183char *G_AddSpawnVarToken( const char *string ) {
1184 int l;
1185 char *dest;
1186
1187 l = strlen( string );
1188 if ( numSpawnVarChars + l + 1 > MAX_SPAWN_VARS_CHARS ) {
1189 G_Error( "G_AddSpawnVarToken: MAX_SPAWN_VARS" );
1190 }
1191
1192 dest = spawnVarChars + numSpawnVarChars;
1193 memcpy( dest, string, l+1 );
1194
1195 numSpawnVarChars += l + 1;
1196
1197 return dest;
1198}
1199
1200/*
1201====================

Callers 2

AddSpawnFieldFunction · 0.70
G_ParseSpawnVarsFunction · 0.70

Calls 1

G_ErrorFunction · 0.70

Tested by

no test coverage detected