Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. // Loop through the entities and make sure the total secret counts match the number of secret entities
  2. void G_VerifySecretCounts()
  3. {
  4. int count = 0;
  5. for( int i = MAX_CLIENTS; i < globals.num_entities; i++ )
  6. {
  7. if( !PInUse(i) )
  8. continue;
  9.  
  10. gentity_t *e = &g_entities[i];
  11.  
  12. if(!e)
  13. continue;
  14.  
  15. if(e->e_UseFunc == useF_target_secret_use)
  16. {
  17. gi.Printf( "target_secret at %s with count of %i\n", e->count );
  18. count++;
  19. }
  20. else
  21. continue;
  22. }
  23. gi.Printf(" Number of target_secret entities: %i\n", count );
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement