Single player mode saves memory and improves performance by deactivating most objects when they are too far away from the player. See jjOBJ::deactivates.
Additionally you probably do not want to use jjObjectCount-1 in your code because that means the object will not be registered if it's the final object.
__________________
I am an official JJ2+ programmer and this has been an official JJ2+ statement.
|