mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 09:39:21 +02:00
commit
e3b02a7c5d
@ -405,7 +405,7 @@ void Creature::updateJump()
|
||||
|
||||
int nextT, i = 1;
|
||||
do {
|
||||
nextT = stdext::round((-b + std::sqrt(std::max<int>(b*b + 4*a*(roundHeight+diff*i), 0.0)) * diff) / (2*a));
|
||||
nextT = stdext::round((-b + std::sqrt(std::max<double>(b*b + 4*a*(roundHeight+diff*i), 0.0)) * diff) / (2*a));
|
||||
++i;
|
||||
|
||||
if(nextT < halfJumpDuration)
|
||||
|
Loading…
x
Reference in New Issue
Block a user