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

Function AddSpawnField

code/game/g_spawn.cpp:51–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49char *G_AddSpawnVarToken( const char *string );
50
51void AddSpawnField(char *field, char *value)
52{
53 int i;
54
55 for(i=0;i<numSpawnVars;i++)
56 {
57 if (Q_stricmp(spawnVars[i][0], field) == 0)
58 {
59 spawnVars[ i ][1] = G_AddSpawnVarToken( value );
60 return;
61 }
62 }
63
64 spawnVars[ numSpawnVars ][0] = G_AddSpawnVarToken( field );
65 spawnVars[ numSpawnVars ][1] = G_AddSpawnVarToken( value );
66 numSpawnVars++;
67}
68
69qboolean G_SpawnField( unsigned int uiField, char **ppKey, char **ppValue )
70{

Callers

nothing calls this directly

Calls 2

Q_stricmpFunction · 0.85
G_AddSpawnVarTokenFunction · 0.70

Tested by

no test coverage detected