Follow-up Comment #2, bug #10709 (project wormux):

Well, things like this seems to clear this bug :
...
void WeaponProjectile::Refresh()
{
  if(energy == 0) {
    Explosion();
    return;
  }
  Point2i size = image->GetSizeMax();
  size.x = (size.x < 1 ? 1 : size.x);
  size.y = (size.y < 1 ? 1 : size.y);
  SetSize(size);
  // Explose after timeout
  double tmp = Time::GetInstance()->Read() - begin_time;

  if(cfg.timeout && tmp > 1000 * (GetTotalTimeout())) SignalTimeout();
}
...

It seems like little projectile - when rotated - as sometime a size of 0. So
forcing it to have a minimum size of 1 if below.

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?10709>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wormux-gna mailing list
[email protected]
https://mail.gna.org/listinfo/wormux-gna

Reply via email to