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();
|
offset = getScreenOffset();
|
||||||
|
|
||||||
x = Pos.vx - offset.vx /*+ ( scrnWidth >> 1 )*/ - ( spriteWidth >> 1 );
|
if ( m_reversed )
|
||||||
y = Pos.vy - offset.vy /*+ ( scrnHeight >> 1 )*/ - ( spriteHeight >> 1 );
|
{
|
||||||
|
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 )
|
if ( x < -spriteWidth || y < -spriteHeight || x > scrnWidth || y > scrnHeight )
|
||||||
{
|
{
|
||||||
|
@ -562,6 +570,8 @@ void CPlayerProjectile::collidedWith(CThing *_thisThing)
|
||||||
|
|
||||||
enemy->hasBeenAttacked();
|
enemy->hasBeenAttacked();
|
||||||
|
|
||||||
|
setToShutdown();
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue