aboutsummaryrefslogtreecommitdiff
path: root/sword2/protocol.cpp
diff options
context:
space:
mode:
authorJonathan Gray2003-07-28 09:49:46 +0000
committerJonathan Gray2003-07-28 09:49:46 +0000
commitf22cca2be21035760c6b2cfb72ad4e1ba5a08182 (patch)
treee588774ea7e4ebaee6b013066fabe3a5eb3af6e7 /sword2/protocol.cpp
parent84bccaa83b996ef49fbedf6bb52bb64e9f3c5fd4 (diff)
downloadscummvm-rg350-f22cca2be21035760c6b2cfb72ad4e1ba5a08182.tar.gz
scummvm-rg350-f22cca2be21035760c6b2cfb72ad4e1ba5a08182.tar.bz2
scummvm-rg350-f22cca2be21035760c6b2cfb72ad4e1ba5a08182.zip
rename _DEBUG define to _BS2_DEBUG to stop it conflicting with VC
svn-id: r9237
Diffstat (limited to 'sword2/protocol.cpp')
-rw-r--r--sword2/protocol.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/sword2/protocol.cpp b/sword2/protocol.cpp
index ab942f6dbb..857036f809 100644
--- a/sword2/protocol.cpp
+++ b/sword2/protocol.cpp
@@ -82,7 +82,7 @@ _layerHeader *FetchLayerHeader(uint8 *screenFile, uint16 layerNo) //Chris 04Oct9
screenHead = FetchScreenHeader(screenFile);
-#ifdef _DEBUG
+#ifdef _BS2_DEBUG
if (layerNo > (screenHead->noLayers-1)) // layer number too large!
Con_fatal_error("FetchLayerHeader(%d) invalid layer number! (%s line %u)",layerNo,__FILE__,__LINE__);
#endif
@@ -123,7 +123,7 @@ _cdtEntry *FetchCdtEntry(uint8 *animFile, uint16 frameNo) // Chris 09Oct96
animHead = FetchAnimHeader(animFile);
-#ifdef _DEBUG
+#ifdef _BS2_DEBUG
if (frameNo > (animHead->noAnimFrames-1)) // frame number too large!
Con_fatal_error("FetchCdtEntry(animFile,%d) - anim only %d frames (%s line %u)",frameNo,animHead->noAnimFrames,__FILE__,__LINE__);
#endif
@@ -147,7 +147,7 @@ _parallax *FetchBackgroundParallaxLayer(uint8 *screenFile, int layer) // Chris 0
{
_multiScreenHeader *mscreenHeader = (_multiScreenHeader *) (screenFile + sizeof(_standardHeader));
-#ifdef _DEBUG
+#ifdef _BS2_DEBUG
if (mscreenHeader->bg_parallax[layer] == 0)
Con_fatal_error("FetchBackgroundParallaxLayer(%d) - No parallax layer exists (%s line %u)",layer,__FILE__,__LINE__);
#endif
@@ -159,7 +159,7 @@ _parallax *FetchBackgroundLayer(uint8 *screenFile) // Chris 04Oct96
{
_multiScreenHeader *mscreenHeader = (_multiScreenHeader *) (screenFile + sizeof(_standardHeader));
-#ifdef _DEBUG
+#ifdef _BS2_DEBUG
if (mscreenHeader->screen == 0)
Con_fatal_error("FetchBackgroundLayer (%d) - No background layer exists (%s line %u)",__FILE__,__LINE__);
#endif
@@ -171,7 +171,7 @@ _parallax *FetchForegroundParallaxLayer(uint8 *screenFile, int layer) // Chris 0
{
_multiScreenHeader *mscreenHeader = (_multiScreenHeader *) (screenFile + sizeof(_standardHeader));
-#ifdef _DEBUG
+#ifdef _BS2_DEBUG
if (mscreenHeader->fg_parallax[layer] == 0)
Con_fatal_error("FetchForegroundParallaxLayer(%d) - No parallax layer exists (%s line %u)",layer,__FILE__,__LINE__);
#endif