Skip to content

Commit

Permalink
Exhumed: fixed radial damage push factor.
Browse files Browse the repository at this point in the history
The original did 'bsin(x) >> 3' with vel being Q18.14 and bsin also returning Q18.14. So for fully floatified values we still must multiply by 1/8, not 128.
  • Loading branch information
coelckers committed Nov 5, 2023
1 parent ff0cb2f commit 40265e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/games/exhumed/src/runlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1790,7 +1790,7 @@ int runlist_CheckRadialDamage(DExhumedActor* pActor)
}
else
{
pActor->vel.XY() += nVel.XY() * 128.;
pActor->vel.XY() += nVel.XY() * 0.125;
}
}
}
Expand Down

0 comments on commit 40265e6

Please sign in to comment.