This commit is contained in:
parent
e050dd1167
commit
4263ef8fdc
1 changed files with 2 additions and 2 deletions
|
@ -1636,8 +1636,8 @@ bool CNpcEnemy::processCoralBlowerMovement( int _frames, s32 xDist, s32 yDist, u
|
||||||
|
|
||||||
headingToTarget = ratan2( yDist, xDist ) & 4095;
|
headingToTarget = ratan2( yDist, xDist ) & 4095;
|
||||||
|
|
||||||
s32 preShiftX = _frames * 5 * rcos( headingToTarget );
|
s32 preShiftX = _frames * 6 * rcos( headingToTarget );
|
||||||
s32 preShiftY = _frames * 5 * rsin( headingToTarget );
|
s32 preShiftY = _frames * 6 * 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