This commit is contained in:
Charles 2001-05-10 20:27:33 +00:00
parent 78683c9539
commit 9a2314b3ad
5 changed files with 15 additions and 1 deletions

View file

@ -193,6 +193,12 @@ void CNpcSmallJellyfishBackgroundEnemy::processUserCollision( CThing *thisThing
otherDelta.vy = -otherDelta.vy;
}
if ( !otherDelta.vx && !otherDelta.vy )
{
otherDelta.vx = ( 1 * xDist ) / abs( xDist );
otherDelta.vy = ( 1 * yDist ) / abs( yDist );
}
Pos.vx += otherDelta.vx;
Pos.vy += otherDelta.vy;