pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] CVS: Games/Pingus/src/worldmap surface_drawable.cxx,1.3,1.4


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src/worldmap surface_drawable.cxx,1.3,1.4
Date: 1 Apr 2003 16:00:10 -0000

Update of /var/lib/cvs/Games/Pingus/src/worldmap
In directory dark:/tmp/cvs-serv19321/src/worldmap

Modified Files:
        surface_drawable.cxx 
Log Message:
- added 'fix' for tutorial_layer1 getting undisplayed at the wrong time
- fixed new not finished savegames overwriting finished old ones

Index: surface_drawable.cxx
===================================================================
RCS file: /var/lib/cvs/Games/Pingus/src/worldmap/surface_drawable.cxx,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- surface_drawable.cxx        7 Mar 2003 00:09:00 -0000       1.3
+++ surface_drawable.cxx        1 Apr 2003 16:00:08 -0000       1.4
@@ -58,10 +58,15 @@
       if (auto_uncover)
         {
           Vector pingus_pos = 
WorldMapManager::instance()->get_worldmap()->get_pingus()->get_pos();
+          // Pingu is not over the surface
           if (!(pingus_pos.x > pos.x && pingus_pos.x < pos.x + 
surface.get_width()
                 && 
                 pingus_pos.y > pos.y && pingus_pos.y < pos.y + 
surface.get_height()))
             {
+              gc.draw(surface, pos);
+            }
+          else if (pingus_pos.z > pos.z + 1000)
+            { // FIXME: Hack for the 0.6.0 release/tutorial world remove later
               gc.draw(surface, pos);
             }
         }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]