[Top][All Lists]
[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 {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/worldobjs entrance.cxx,1.10,1.11,
grumbel <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src/particles pingu_particle_holder.cxx,1.5,1.6
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src/actions basher.cxx,1.26,1.27 exiter.cxx,1.16,1.17 exiter.hxx,1.11,1.12
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src/particles pingu_particle_holder.cxx,1.5,1.6
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src/actions basher.cxx,1.26,1.27 exiter.cxx,1.16,1.17 exiter.hxx,1.11,1.12
- Index(es):