This commit is contained in:
parent
504688e4cd
commit
a3deedd3dc
1 changed files with 12 additions and 2 deletions
|
@ -531,8 +531,16 @@ void CPlayerProjectile::render()
|
|||
|
||||
offset = getScreenOffset();
|
||||
|
||||
x = Pos.vx - offset.vx /*+ ( scrnWidth >> 1 )*/ - ( spriteWidth >> 1 );
|
||||
y = Pos.vy - offset.vy /*+ ( scrnHeight >> 1 )*/ - ( spriteHeight >> 1 );
|
||||
if ( m_reversed )
|
||||
{
|
||||
x = Pos.vx - offset.vx + ( spriteWidth >> 1 );
|
||||
}
|
||||
else
|
||||
{
|
||||
x = Pos.vx - offset.vx - ( spriteWidth >> 1 );
|
||||
}
|
||||
|
||||
y = Pos.vy - offset.vy - ( spriteHeight >> 1 );
|
||||
|
||||
if ( x < -spriteWidth || y < -spriteHeight || x > scrnWidth || y > scrnHeight )
|
||||
{
|
||||
|
@ -562,6 +570,8 @@ void CPlayerProjectile::collidedWith(CThing *_thisThing)
|
|||
|
||||
enemy->hasBeenAttacked();
|
||||
|
||||
setToShutdown();
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue