From a3deedd3dc43e4f911eef588f7c705074de01128 Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 3 May 2001 13:26:46 +0000 Subject: [PATCH] --- source/projectl/projectl.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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; }