rnd-20051125-1-src
[rocksndiamonds.git] / src / tools.c
index eedf5d60284157f4aa9c79b60d0d49ff43cde1ad..883a670f9993dcfa3ca8e10e0de7bc58b04a2aaa 100644 (file)
@@ -425,6 +425,12 @@ void FadeToFront()
   BackToFront();
 }
 
+void SetMainBackgroundImageIfDefined(int graphic)
+{
+  if (graphic_info[graphic].bitmap)
+    SetMainBackgroundImage(graphic);
+}
+
 void SetMainBackgroundImage(int graphic)
 {
   SetMainBackgroundBitmap(graphic == IMG_UNDEFINED ? NULL :