URL:
<http://gna.org/task/?6921>
Summary: Change projectiles to not use the uninialized field
begin_time by default.
Project: Wormux
Submitted by: iflo
Submitted on: Sunday 01/17/2010 at 22:24
Should Start On: Sunday 01/17/2010 at 00:00
Should be Finished on: Saturday 01/01/2011 at 00:00
Category: network
Priority: 5 - Normal
Status: None
Percent Complete: 0%
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
The method WeaponProjectile::IsImmobile() uses the field begin_time if
explode_with_timeout is true. As explode_with_timeout defaults to true all
projectiles use the variable begin_time by default but do not necessarly
initialize it.
WeaponProjectile should be changed in a way that it doesn't use the
uninitialized begin_time field by default. One solution would be to set
explode_with_timeout by default to false. Another good thing to do would be
to replace begin_time expressions with GetBeginTime() which checks then in an
assertion that begin time has a valid value.
_______________________________________________________
Reply to this item at:
<http://gna.org/task/?6921>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wormux-gna mailing list
[email protected]
https://mail.gna.org/listinfo/wormux-gna