From e5408231ae20978240475d00819935a4bdda17ef Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 13 Feb 2001 15:27:40 +0000 Subject: [PATCH] --- source/projectl/projectl.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/projectl/projectl.cpp b/source/projectl/projectl.cpp index 3ca691a2d..04e0a7b83 100644 --- a/source/projectl/projectl.cpp +++ b/source/projectl/projectl.cpp @@ -278,6 +278,11 @@ void CProjectile::render() x = Pos.vx - offset.vx /*+ ( scrnWidth >> 1 )*/ - ( spriteWidth >> 1 ); y = Pos.vy - offset.vy /*+ ( scrnHeight >> 1 )*/ - ( spriteHeight >> 1 ); + if ( x < -spriteWidth || y < -spriteHeight || x > scrnWidth || y > scrnHeight ) + { + return; + } + m_spriteBank->printFT4(FRM_BARNACLEBOY,x,y,0,0,0); }