summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Howard2006-08-06 22:51:29 +0000
committerSimon Howard2006-08-06 22:51:29 +0000
commit9c1d6d6f34af6699d272020757ca36a4daebe884 (patch)
treefd7c0fd0f3220a3f1603602127eac885f7bfa8e8 /src
parent784e848b326a6f8b0c1377fc7a1b3c5a945cb009 (diff)
downloadchocolate-doom-9c1d6d6f34af6699d272020757ca36a4daebe884.tar.gz
chocolate-doom-9c1d6d6f34af6699d272020757ca36a4daebe884.tar.bz2
chocolate-doom-9c1d6d6f34af6699d272020757ca36a4daebe884.zip
Bomb out with an error when trying to draw patches that go off the screen,
as Vanilla Doom does. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 569
Diffstat (limited to 'src')
-rw-r--r--src/v_video.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/v_video.c b/src/v_video.c
index 8e2ab7ab..8723c8d1 100644
--- a/src/v_video.c
+++ b/src/v_video.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: v_video.c 110 2005-09-17 20:25:56Z fraggle $
+// $Id: v_video.c 569 2006-08-06 22:51:29Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -43,7 +43,7 @@
static const char
-rcsid[] = "$Id: v_video.c 110 2005-09-17 20:25:56Z fraggle $";
+rcsid[] = "$Id: v_video.c 569 2006-08-06 22:51:29Z fraggle $";
#include "i_system.h"
@@ -244,10 +244,7 @@ V_DrawPatch
|| y+SHORT(patch->height)>SCREENHEIGHT
|| (unsigned)scrn>4)
{
- fprintf( stderr, "Patch at %d,%d exceeds LFB\n", x,y );
- // No I_Error abort - what is up with TNT.WAD?
- fprintf( stderr, "V_DrawPatch: bad patch (ignored)\n");
- return;
+ I_Error("Bad V_DrawPatch");
}
#endif
@@ -311,8 +308,7 @@ V_DrawPatchFlipped
|| y+SHORT(patch->height)>SCREENHEIGHT
|| (unsigned)scrn>4)
{
- fprintf( stderr, "Patch origin %d,%d exceeds LFB\n", x,y );
- I_Error ("Bad V_DrawPatch in V_DrawPatchFlipped");
+ I_Error("Bad V_DrawPatchFlipped");
}
#endif