This commit is contained in:
parent
89493bb040
commit
1be56accde
@ -1621,8 +1621,8 @@ bool CNpcEnemy::processCoralBlowerMovement( int _frames, s32 xDist, s32 yDist, u
|
|||||||
|
|
||||||
headingToTarget = ratan2( yDist, xDist );
|
headingToTarget = ratan2( yDist, xDist );
|
||||||
|
|
||||||
s32 preShiftX = _frames * 3 * rcos( headingToTarget );
|
s32 preShiftX = _frames * 5 * rcos( headingToTarget );
|
||||||
s32 preShiftY = _frames * 3 * rsin( headingToTarget );
|
s32 preShiftY = _frames * 5 * rsin( headingToTarget );
|
||||||
|
|
||||||
moveX = preShiftX >> 12;
|
moveX = preShiftX >> 12;
|
||||||
if ( !moveX && preShiftX )
|
if ( !moveX && preShiftX )
|
||||||
|
Loading…
Reference in New Issue
Block a user