Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. Object *activeObjects[MAX_OBJECTS];
  2.  
  3. void objectAdd(Object *object) {
  4. int _i = 0;
  5. while (_i < MAX_OBJECTS && activeObjects[_i] != NULL)
  6. _i++;
  7. if (_i < MAX_OBJECTS)
  8. activeObjects[_i] = object;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement