URL:
<http://gna.org/bugs/?8594>
Summary: firing angle is sometimes not ok when switching
weapon
Project: Wormux
Submitted by: gentildemon
Submitted on: mardi 27.02.2007 à 10:41
Hidden: Visible
Category: Game rules
Severity: 3 - Normal
Priority: 1 - Later
Status: Fixed
Assigned to: gentildemon
Originator Email:
Open/Closed: Open
Release: 0.7.9/trunk
Discussion Lock: Any
_______________________________________________________
Details:
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.
=======================
I add the line in Weapon::Select()
TODO: backport in 0.7.9 :)
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?8594>
_______________________________________________
Message posté via/par Gna!
http://gna.org/
_______________________________________________
Wormux-gna mailing list
[email protected]
https://mail.gna.org/listinfo/wormux-gna