Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Object *activeObjects[MAX_OBJECTS];
- void objectAdd(Object *object) {
- int _i = 0;
- while (_i < MAX_OBJECTS && activeObjects[_i] != NULL)
- _i++;
- if (_i < MAX_OBJECTS)
- activeObjects[_i] = object;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement