foxygit / doom Log in
commit 9c1d6d6f34af6699d272020757ca36a4daebe884
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Sun Aug 6 22:51:29 2006 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Sun Aug 6 22:51:29 2006 +0000

    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
---
 src/v_video.c | 12 ++++--------
 1 file 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