Follow-up Comment #2, bug #9056 (project wormux):
I think, we can try to enhance this feature by adding the possibility to
overlaps ground with a time out (even for object). Things like supertux / gnu
/ polecat need it. Actually is quite difficult to launch a supertux without
blowing up our head :)
For the problem of NULL pointer, first i think the problem is actually quite
impossible to simulate (I agree with matt, we only use it in weapon
management). So I think we can keep things just as it is.
For the ultimate solution, here is what I propose : when we delete an object,
we check for a reference in the object list and then we remove the reference
in the object. With this, we keep the actual mechanism and we avoid eventual
NULL pointer exceptions.A much cleaner way (and faster) will be to add a new
list of object overlapping something and to keep it up to date when deleting
object.
Regards
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?9056>
_______________________________________________
Message posté via/par Gna!
http://gna.org/
_______________________________________________
Wormux-gna mailing list
[email protected]
https://mail.gna.org/listinfo/wormux-gna