[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/worldmap pingus.cxx,1.5,1.6
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/worldmap pingus.cxx,1.5,1.6 |
Date: |
4 Aug 2002 15:42:26 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src/worldmap
In directory dark:/tmp/cvs-serv32416/worldmap
Modified Files:
pingus.cxx
Log Message:
- turned credit screen into a Screen
- turned editor into a screen (half finished)
- some cleanup
Index: pingus.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/worldmap/pingus.cxx,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- pingus.cxx 2 Jul 2002 13:36:07 -0000 1.5
+++ pingus.cxx 4 Aug 2002 15:42:23 -0000 1.6
@@ -51,7 +51,13 @@
PingusWorldMapPingus::draw (const CL_Vector& offset)
{
sprite.set_direction (is_left ? Sprite::LEFT : Sprite::RIGHT);
- sprite.put_screen (pos + offset);
+ if (!targets.empty ())
+ sprite.put_screen (pos + offset);
+ else
+ {
+ sprite.reset ();
+ sprite.put_screen (pos + offset);
+ }
}
bool
@@ -63,7 +69,8 @@
void
PingusWorldMapPingus::update (float delta)
{
- sprite.update (delta);
+ if (!targets.empty ())
+ sprite.update (delta);
if (!targets.empty ())
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/worldmap pingus.cxx,1.5,1.6,
grumbel <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src/editor editor.cxx,1.19,1.20 editor.hxx,1.8,1.9
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src/gui gui_manager.cxx,1.7,1.8
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src/editor editor.cxx,1.19,1.20 editor.hxx,1.8,1.9
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src/gui gui_manager.cxx,1.7,1.8
- Index(es):