| 78 | } |
| 79 | |
| 80 | qboolean G_SpawnString( const char *key, const char *defaultString, char **out ) { |
| 81 | int i; |
| 82 | |
| 83 | if ( !spawning ) { |
| 84 | *out = (char *)defaultString; |
| 85 | // G_Error( "G_SpawnString() called while not spawning" ); |
| 86 | } |
| 87 | |
| 88 | for ( i = 0 ; i < numSpawnVars ; i++ ) { |
| 89 | if ( !Q_stricmp( key, spawnVars[i][0] ) ) { |
| 90 | *out = spawnVars[i][1]; |
| 91 | return qtrue; |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | *out = (char *)defaultString; |
| 96 | return qfalse; |
| 97 | } |
| 98 | |
| 99 | qboolean G_SpawnFloat( const char *key, const char *defaultString, float *out ) { |
| 100 | char *s; |
no test coverage detected