This commit is contained in:
parent
47d5bb7fc7
commit
58756ef755
11 changed files with 287 additions and 33 deletions
|
@ -195,6 +195,16 @@ void CNpcSmallJellyfishBackgroundEnemy::processUserCollision( CThing *thisThing
|
|||
|
||||
if ( !otherDelta.vx && !otherDelta.vy )
|
||||
{
|
||||
if ( !xDist )
|
||||
{
|
||||
xDist = 1;
|
||||
}
|
||||
|
||||
if ( !yDist )
|
||||
{
|
||||
yDist = 1;
|
||||
}
|
||||
|
||||
otherDelta.vx = ( 1 * xDist ) / abs( xDist );
|
||||
otherDelta.vy = ( 1 * yDist ) / abs( yDist );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue