Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Loop through the entities and make sure the total secret counts match the number of secret entities
- void G_VerifySecretCounts()
- {
- int count = 0;
- for( int i = MAX_CLIENTS; i < globals.num_entities; i++ )
- {
- if( !PInUse(i) )
- continue;
- gentity_t *e = &g_entities[i];
- if(!e)
- continue;
- if(e->e_UseFunc == useF_target_secret_use)
- {
- gi.Printf( "target_secret at %s with count of %i\n", e->count );
- count++;
- }
- else
- continue;
- }
- gi.Printf(" Number of target_secret entities: %i\n", count );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement