Skip to content
Permalink
Browse files

pass weapon target (if any) to ScriptDecloak

  • Loading branch information...
rtri
rtri committed Sep 23, 2019
1 parent 44ac53f commit 013f817c3a675a27ce8fcd8219c863fbc3da2002
Showing with 1 addition and 1 deletion.
  1. +1 −1 rts/Sim/Weapons/Weapon.cpp
@@ -484,7 +484,7 @@ void CWeapon::UpdateSalvo()

// Decloak
if (owner->unitDef->decloakOnFire)
owner->ScriptDecloak(nullptr, this);
owner->ScriptDecloak(HaveUnitTarget()? currentTarget.unit: nullptr, this);

for (int i = 0; i < projectilesPerShot; ++i) {
owner->script->Shot(weaponNum);

0 comments on commit 013f817

Please sign in to comment.
You can’t perform that action at this time.