From c9298f5c2fa1facca413997170cf9b2b938e9f4a Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 31 Jul 2001 16:30:15 +0000 Subject: [PATCH] --- source/level/layertile.cpp | 11 +++++++++++ source/level/layertile3d.cpp | 9 +++++++++ 2 files changed, 20 insertions(+) diff --git a/source/level/layertile.cpp b/source/level/layertile.cpp index d7e61ce53..fead94c17 100644 --- a/source/level/layertile.cpp +++ b/source/level/layertile.cpp @@ -19,6 +19,10 @@ static const int TILE2D_HEIGHT=12; static const int SCREEN_TILE2D_WIDTH=((512/TILE2D_WIDTH)+1); static const int SCREEN_TILE2D_HEIGHT=((256/TILE2D_HEIGHT)+1); +#ifdef __VERSION_DEBUG__ +extern int PretendToBeAPS2; +#endif + /*****************************************************************************/ /*****************************************************************************/ /*****************************************************************************/ @@ -110,6 +114,13 @@ int YPos=MapPos.vy>>MapXYShift; /*****************************************************************************/ void CLayerTile::render() { +#ifdef __VERSION_DEBUG__ +if(PretendToBeAPS2) +{ + return; +} +#endif + sTileMapElem *MapPtr=Map+GetMapOfs(); s16 TileX,TileY; sOT *ThisOT=OtPtr+LayerOT; diff --git a/source/level/layertile3d.cpp b/source/level/layertile3d.cpp index 8476c31fc..b43684060 100644 --- a/source/level/layertile3d.cpp +++ b/source/level/layertile3d.cpp @@ -35,6 +35,9 @@ static const int RENDER_Y_OFS =INGAME_SCREENOFS_Y-(SCREEN_TILE_ADJ_U*BLOCK_SIZ static const int DeltaTableSizeX=SCREEN_TILE3D_WIDTH+1; static const int DeltaTableSizeY=SCREEN_TILE3D_HEIGHT+1; +#ifdef __VERSION_DEBUG__ +int PretendToBeAPS2=false; +#endif /*****************************************************************************/ // 0 LUF @@ -276,6 +279,12 @@ s32 *OutPtr; /*****************************************************************************/ void CLayerTile3d::render() { +#ifdef __VERSION_DEBUG__ +if(PretendToBeAPS2) +{ + return; +} +#endif int MapOfs=GetMapOfs(); sTileMapElem *MapPtr=Map+MapOfs; u8 *RGBMapPtr=RGBMap+MapOfs;