Author: jsalmon3
Date: 2007-08-07 04:28:52 +0200 (Tue, 07 Aug 2007)
New Revision: 2825

Modified:
   branches/pingus_sdl/TODO
   branches/pingus_sdl/src/worldobjs/surface_background.cpp
Log:
Set a default position for surface_background

Modified: branches/pingus_sdl/TODO
===================================================================
--- branches/pingus_sdl/TODO    2007-08-07 01:48:00 UTC (rev 2824)
+++ branches/pingus_sdl/TODO    2007-08-07 02:28:52 UTC (rev 2825)
@@ -30,8 +30,6 @@
 
 - liquid's old-width-handling isn't handled by sexpr, but might be needed for 
some levels
 
-- completly broken: data/levels/playable/bombing.scm (z ordering?)
-
 - hotspot offset gets ignored/mishandled
 
 - seperate gfx/colmap surfaces aren't used

Modified: branches/pingus_sdl/src/worldobjs/surface_background.cpp
===================================================================
--- branches/pingus_sdl/src/worldobjs/surface_background.cpp    2007-08-07 
01:48:00 UTC (rev 2824)
+++ branches/pingus_sdl/src/worldobjs/surface_background.cpp    2007-08-07 
02:28:52 UTC (rev 2825)
@@ -41,7 +41,8 @@
     scroll_ox(0),
     scroll_oy(0)
 {
-  reader.read_vector("position", pos);
+  if (!reader.read_vector("position", pos))
+    pos = Vector3f(0.f, 0.f, -150.f);
 
   ResDescriptor desc;
 



_______________________________________________
pingus-cvs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/pingus-cvs

Reply via email to