Wierd object system problem
eero.tamminen at netsonic.fi
Sun Jul 17 10:28:33 EDT 2005
I'm having a strange problem.
I have the singleton generator generating a new sprite each time obj_lock()
fails on the obj_id for the previous sprite. Sprite creation is rate
What seems to happen is this:
0. Rate limit passes through
1. Sprite is created, new rate limit set
-> sprite gets visible and everything is OK
2. Sprite is killed
-> ojb_lock(obj_id) fails
3. Rate limit passes through
4. Sprite is created, new rate limit is set
-> sprite doesn't come visible & obj_lock() on it's id fails
And this loops then to 0.
I.e. for some reason locking each other created sprite doesn't for some
reason work properly.
This can be best tested with the level zero by flying to the fuel barrel
each time it becomes visible again (and it seems to come visible only each
other time a new fuel instance is created).
Any ideas how this could be fixed?
PS. COUNT of zero for generators means now infinite count.
More information about the airstrike