From 5e29362f7a5f08f502e3cf138b7f5d9da624d394 Mon Sep 17 00:00:00 2001
From: jsalmon3 <>
Date: Sat, 3 May 2003 20:01:06 +0000
Subject: [PATCH] Allow loading a sprite with 0 width or 0 height

---
 src/video/sprite.cpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/video/sprite.cpp b/src/video/sprite.cpp
index 541bc3846..c70a81a97 100644
--- a/src/video/sprite.cpp
+++ b/src/video/sprite.cpp
@@ -3029,8 +3029,13 @@ global Graphic* LoadSprite(const char* name,int width,int height)
     int depth;
 
     graphic=LoadGraphic(name);
+    if( !width ) {
+	width=graphic->Width;
+    }
+    if( !height ) {
+	height=graphic->Height;
+    }
 
-    DebugCheck( !width || !height );
     DebugCheck( width>graphic->Width || height>graphic->Height );
 
     depth=8;