pingus-cvs
[Top][All Lists]
Advanced

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

[Pingus-CVS] CVS: Games/Pingus/src/worldobjs entrance.cxx,1.10,1.11


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src/worldobjs entrance.cxx,1.10,1.11
Date: 5 Mar 2003 17:31:32 -0000

Update of /usr/local/cvsroot/Games/Pingus/src/worldobjs
In directory dark:/tmp/cvs-serv9860/worldobjs

Modified Files:
        entrance.cxx 
Log Message:
- fixed sound for exiters
- added little delay on level startup to the entrances, so that there is place 
for a 'lets go' like sound


Index: entrance.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/worldobjs/entrance.cxx,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- entrance.cxx        3 Mar 2003 20:32:18 -0000       1.10
+++ entrance.cxx        5 Mar 2003 17:31:30 -0000       1.11
@@ -33,7 +33,7 @@
 Entrance::Entrance (const WorldObjsData::EntranceData& data_)
   : data(new WorldObjsData::EntranceData(data_)),
     smallmap_symbol("misc/smallmap_entrance", "core"),
-    last_release(-data->release_rate)
+    last_release(150 - data->release_rate) // wait ~2sec at startup to allow a 
'lets go' sound
 {
   smallmap_symbol.set_align_center_bottom();
   if (verbose > 2)
@@ -54,7 +54,7 @@
 bool
 Entrance::pingu_ready ()
 {
-  if (last_release < (world->get_game_time()->get_ticks() - 
data->release_rate)) {
+  if (last_release + data->release_rate < 
(world->get_game_time()->get_ticks())) {
     last_release = world->get_game_time()->get_ticks();
     return true;
   } else {





reply via email to

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