I'm stupid moderator i clic on bad button :
FROM johannes :
hi,
I just discovered a bug an already made a patch for it.
When you switch beetween Weapons with different max/min firing angles, it
sometimes happens, that the weapon is pointing in a direction not
allowed for
this weapon.
An example:
Switch to the sniper.
Set the firing angle, to shoot below your character.
Switch to the Ninja Rope.
The Ninja Rope points still below your character, but this is not
allowed for
the Ninja Rope.
Patch:
in src/team/team.cpp
void Team::SetWeapon (Weapon::Weapon_type type)
{
AccessWeapon().Deselect();
active_weapon = WeaponsList::GetInstance()->GetWeapon(type);
AccessWeapon().Select();
+ active_character->SetFiringAngle(active_character->GetFiringAngle());
}
This could be also put in Weapon::Select(), but I don't think, that is much
different.
Should I also fill in a bugzilla bugreport?
johannes
_______________________________________________
Wormux-dev mailing list
Wormux-dev@gna.org
https://mail.gna.org/listinfo/wormux-dev