Skip to content

Commit

Permalink
Revert "Fix numBounce -1 not being unlimited (#1463)"
Browse files Browse the repository at this point in the history
This reverts commit 14b780e.
  • Loading branch information
lostsquirrel1 committed Aug 12, 2024
1 parent 1a5a352 commit 77272e9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions rts/Sim/Projectiles/WeaponProjectiles/WeaponProjectile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,12 +316,9 @@ void CWeaponProjectile::UpdateGroundBounce()
// projectile is not allowed to bounce on either surface
if (!weaponDef->groundBounce && !weaponDef->waterBounce)
return;

// maximum number of bounce already reached?
if (weaponDef->numBounce != -1 // infinite
&& bounces >= weaponDef->numBounce)
if ((bounces + 1) > weaponDef->numBounce)
return;

if (luaMoveCtrl)
return;
if (ttl <= 0) {
Expand Down

0 comments on commit 77272e9

Please sign in to comment.