[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/worldobjs ice_block.cxx,1.4,1.5
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/worldobjs ice_block.cxx,1.4,1.5 |
Date: |
28 Jun 2002 09:51:48 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src/worldobjs
In directory dark:/tmp/cvs-serv30237/worldobjs
Modified Files:
ice_block.cxx
Log Message:
- changed gametime to become a member of the World instead of a singleton
- fixed a bug in the walker (a bridge on a hill works now)
Index: ice_block.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/worldobjs/ice_block.cxx,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- ice_block.cxx 28 Jun 2002 08:32:21 -0000 1.4
+++ ice_block.cxx 28 Jun 2002 09:51:46 -0000 1.5
@@ -28,6 +28,7 @@
#include "ice_block.hxx"
#include "../pingu.hxx"
#include "../boost/smart_ptr.hpp"
+#include "../game_time.hxx"
IceBlockData::IceBlockData () : width(1)
{
@@ -126,11 +127,11 @@
if ((*pingu)->get_x() > pos.x && (*pingu)->get_x() < pos.x +
block_sur.get_width()
&& (*pingu)->get_y() > pos.y - 4 && (*pingu)->get_y() < pos.y +
block_sur.get_height())
{
- last_contact = GameTime::get_ticks ();
+ last_contact = world->get_game_time()->get_ticks ();
}
}
- if (last_contact && last_contact + 1000 > GameTime::get_ticks ())
+ if (last_contact && last_contact + 1000 > world->get_game_time ()->get_ticks
())
{
//std::cout << "IceBlock: Catched Pingu: " << thickness << std::endl;
thickness -= 0.01f;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/worldobjs ice_block.cxx,1.4,1.5,
grumbel <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src entrance.cxx,1.3,1.4 game_time.cxx,1.3,1.4 game_time.hxx,1.3,1.4 server.cxx,1.6,1.7 true_server.cxx,1.2,1.3 world.cxx,1.11,1.12 world.hxx,1.3,1.4
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src Makefile.am,1.80,1.81
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src entrance.cxx,1.3,1.4 game_time.cxx,1.3,1.4 game_time.hxx,1.3,1.4 server.cxx,1.6,1.7 true_server.cxx,1.2,1.3 world.cxx,1.11,1.12 world.hxx,1.3,1.4
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src Makefile.am,1.80,1.81
- Index(es):