This commit is contained in:
parent
89493bb040
commit
1be56accde
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue