Follow-up Comment #4, bug #7735 (project wormux):

Extending the Rectangle of test :
void Teleportation::ChooseTarget(Point2i mouse_pos)
{
  dst = mouse_pos - ActiveCharacter().GetSize()/2;
  Rectanglei tmp = Rectanglei(dst - Point2i(2, 2),
ActiveCharacter().GetSize() + Point2i(2, 2));
  if(!world.ParanoiacRectIsInVacuum(tmp) ||
     !ActiveCharacter().IsInVacuumXY(dst))
    return;
  target_chosen = true;
  Shoot();
}


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


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

Reply via email to