This commit is contained in:
Charles 2001-02-13 15:27:40 +00:00
parent c9bc46c3a1
commit e5408231ae

View File

@ -278,6 +278,11 @@ void CProjectile::render()
x = Pos.vx - offset.vx /*+ ( scrnWidth >> 1 )*/ - ( spriteWidth >> 1 ); x = Pos.vx - offset.vx /*+ ( scrnWidth >> 1 )*/ - ( spriteWidth >> 1 );
y = Pos.vy - offset.vy /*+ ( scrnHeight >> 1 )*/ - ( spriteHeight >> 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); m_spriteBank->printFT4(FRM_BARNACLEBOY,x,y,0,0,0);
} }