On 6/28/07, Per Inge Mathisen <[EMAIL PROTECTED]> wrote:

On 6/28/07, The Watermelon <[EMAIL PROTECTED]> wrote:
> I noticed some of CHECK_PROJECTILE/CHECK_OBJECT are unnecessary and give
> false alerts,because most of the time the functions should be able to
figure
> out the objects who are   marked as 'died' and will be GC'ed next
frame,just
> did a 7 AI with slider maxed out run for few hours in MSVC(to make
ignoring
> asserts easier),had tons of asserts but none of them caused any harm
after
> being ignored.

Which checks are unnecessary? They should be removed, even if there is
reference counting.

There is not much left to do for the reference counting patch, but I
will not be able to look at it the next few days, so if you want, here
it is in its unfinished state.

The only thing I think I've not implemented yet is reference counting
for psDroid->asOrderList->psOrderTarget pointers. And testing.

  - Per


A quicky test discovered a little glitch in setDroidTarget,it tests the
psTarget pointer against NULL when setting targets,which will cause crash
when loading a save,because the NULL stuff is marked as UDWORD_MAX etc when
stored in save files.

I can probably fix/finish your patch if you dont have the time to fix/finish
it atm.
_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to