mirror of https://github.com/AxioDL/metaforce.git
CFlameThrower: Assign thermal hot to xe6_27_thermalVisorFlags instead of ORing
Previously the code was neglecting to clear the flags entirely before assigning the new value to it.
This commit is contained in:
parent
77861a9b9f
commit
665b4f496d
|
@ -38,7 +38,7 @@ void CFlameThrower::Accept(IVisitor& visitor) { visitor.Visit(this); }
|
|||
|
||||
void CFlameThrower::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr) {
|
||||
if (msg == EScriptObjectMessage::Registered) {
|
||||
xe6_27_thermalVisorFlags |= 2;
|
||||
xe6_27_thermalVisorFlags = 2;
|
||||
mgr.AddWeaponId(xec_ownerId, xf0_weaponType);
|
||||
} else if (msg == EScriptObjectMessage::Deleted) {
|
||||
mgr.RemoveWeaponId(xec_ownerId, xf0_weaponType);
|
||||
|
|
Loading…
Reference in New Issue