diff --git a/source/projectl/projectl.cpp b/source/projectl/projectl.cpp index a9f3ed5f1..7ab59d508 100644 --- a/source/projectl/projectl.cpp +++ b/source/projectl/projectl.cpp @@ -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; }