[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src pingu.cxx,1.38,1.39 surface_button.cx
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src pingu.cxx,1.38,1.39 surface_button.cxx,1.21,1.22 world.cxx,1.40,1.41 |
Date: |
4 Mar 2003 13:59:46 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src
In directory dark:/tmp/cvs-serv27502
Modified Files:
pingu.cxx surface_button.cxx world.cxx
Log Message:
fixed memleak in sound
Index: pingu.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/pingu.cxx,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- pingu.cxx 18 Feb 2003 15:04:47 -0000 1.38
+++ pingu.cxx 4 Mar 2003 13:59:44 -0000 1.39
@@ -313,7 +313,7 @@
die. */
if (rel_getpixel(0, -1) == Groundtype::GP_OUTOFSCREEN)
{
- PingusSound::play_sound("sounds/die.wav");
+ PingusSound::play_sound("die");
status = PS_DEAD;
return;
}
Index: surface_button.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/surface_button.cxx,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- surface_button.cxx 19 Feb 2003 09:50:36 -0000 1.21
+++ surface_button.cxx 4 Mar 2003 13:59:44 -0000 1.22
@@ -122,7 +122,7 @@
SurfaceButton::on_pointer_enter ()
{
mouse_over = true;
- PingusSound::play_sound ("sounds/tick.wav");
+ PingusSound::play_sound ("tick");
//std::cout << "X: " << this << "enter" << std::endl;
}
@@ -263,7 +263,7 @@
QuitButton::on_click()
{
std::cout << "QuitButton: do exit" << std::endl;
- PingusSound::play_sound ("sounds/goodidea.wav");
+ PingusSound::play_sound ("goodidea");
menu->get_manager ()->show_exit_menu ();
}
@@ -362,7 +362,7 @@
void
StoryButton::on_click ()
{
- PingusSound::play_sound ("sounds/letsgo.wav");
+ PingusSound::play_sound ("letsgo");
ScreenManager::instance()->push_screen(WorldMapNS::WorldMapManager::instance
());
}
@@ -382,7 +382,7 @@
void
ThemeButton::on_click ()
{
- PingusSound::play_sound ("sounds/letsgo.wav");
+ PingusSound::play_sound ("letsgo");
ThemeSelector theme_selector;
theme_selector.display();
Index: world.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/world.cxx,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- world.cxx 3 Mar 2003 20:32:18 -0000 1.40
+++ world.cxx 4 Mar 2003 13:59:44 -0000 1.41
@@ -221,7 +221,7 @@
void
World::armageddon(void)
{
- PingusSound::play_sound ("sounds/goodidea.wav");
+ PingusSound::play_sound ("goodidea");
do_armageddon = true;
armageddon_count = 0;
}
@@ -259,11 +259,11 @@
if (panning < -1.0f)
panning = -1.0f;
- PingusSound::play_sound("sounds/" + name + ".wav", volume, panning);
+ PingusSound::play_sound(name, volume, panning);
}
else // No view available, so no stereo enabled
{
- PingusSound::play_sound("sounds/" + name + ".wav", volume);
+ PingusSound::play_sound(name, volume);
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src pingu.cxx,1.38,1.39 surface_button.cxx,1.21,1.22 world.cxx,1.40,1.41,
grumbel <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src/worldobjsdata bumper_data.cxx,1.9,1.10 bumper_data.hxx,1.5,1.6 conveyor_belt_data.cxx,1.9,1.10 conveyor_belt_data.hxx,1.6,1.7 entrance_data.cxx,1.6,1.7 entrance_data.hxx,1.3,1.4 exit_data.cxx,1.6,1.7 exit_data.hxx,1.3,1.4 fake_exit_data.cxx,1.9,1.10 fake_exit_data.hxx,1.5,1.6 groundpiece_data.cxx,1.14,1.15 groundpiece_data.hxx,1.5,1.6 guillotine_data.cxx,1.9,1.10 guillotine_data.hxx,1.5,1.6 hammer_data.cxx,1.10,1.11 hammer_data.hxx,1.6,1.7 hotspot_data.cxx,1.5,1.6 hotspot_data.hxx,1.5,1.6 ice_block_data.cxx,1.8,1.9 ice_block_data.hxx,1.5,1.6 info_box_data.cxx,1.10,1.11 info_box_data.hxx,1.5,1.6 laser_exit_data.cxx,1.9,1.10 laser_exit_data.hxx,1.5,1.6 liquid_data.cxx,1.9,1.10 liquid_data.hxx,1.5,1.6 prefab_obj_data.cxx,1.7,1.8 prefab_obj_data.hxx,1.5,1.6 rain_generator_data.cxx,1.4,1.5 rain_generator_data.hxx,1.4,1.5 smasher_data.cxx,1.9,1.10 smasher_data.hxx,1.5,1.6 snow_generator_data.cxx,1.6,1.7 snow_generator_data.hxx,1.7,1.8solid_color_background_data.cxx,1.5,1.6 solid_color_background_data.hxx,1.4,1.5 spike_data.cxx,1.9,1.10 spike_data.hxx,1.6,1.7 starfield_background_data.cxx,1.7,1.8 starfield_background_data.hxx,1.3,1.4surface_background_data.cxx,1.9,1.10 surface_background_data.hxx,1.5,1.6 switch_door_data.cxx,1.9,1.10 switch_door_data.hxx,1.5,1.6 teleporter_data.cxx,1.10,1.11 teleporter_data.hxx,1.5,1.6thunderstorm_background_data.cxx,1.5,1.6 thunderstorm_background_data.hxx,1.4,1.5 worldobj_group_data.cxx,1.7,1.8 worldobj_group_data.hxx,1.5,1.6
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src/actions bridger.cxx,1.28,1.29 digger.cxx,1.21,1.22 exiter.cxx,1.15,1.16 miner.cxx,1.20,1.21
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src/worldobjsdata bumper_data.cxx,1.9,1.10 bumper_data.hxx,1.5,1.6 conveyor_belt_data.cxx,1.9,1.10 conveyor_belt_data.hxx,1.6,1.7 entrance_data.cxx,1.6,1.7 entrance_data.hxx,1.3,1.4 exit_data.cxx,1.6,1.7 exit_data.hxx,1.3,1.4 fake_exit_data.cxx,1.9,1.10 fake_exit_data.hxx,1.5,1.6 groundpiece_data.cxx,1.14,1.15 groundpiece_data.hxx,1.5,1.6 guillotine_data.cxx,1.9,1.10 guillotine_data.hxx,1.5,1.6 hammer_data.cxx,1.10,1.11 hammer_data.hxx,1.6,1.7 hotspot_data.cxx,1.5,1.6 hotspot_data.hxx,1.5,1.6 ice_block_data.cxx,1.8,1.9 ice_block_data.hxx,1.5,1.6 info_box_data.cxx,1.10,1.11 info_box_data.hxx,1.5,1.6 laser_exit_data.cxx,1.9,1.10 laser_exit_data.hxx,1.5,1.6 liquid_data.cxx,1.9,1.10 liquid_data.hxx,1.5,1.6 prefab_obj_data.cxx,1.7,1.8 prefab_obj_data.hxx,1.5,1.6 rain_generator_data.cxx,1.4,1.5 rain_generator_data.hxx,1.4,1.5 smasher_data.cxx,1.9,1.10 smasher_data.hxx,1.5,1.6 snow_generator_data.cxx,1.6,1.7 snow_generator_data.hxx,1.7,1.8solid_color_background_data.cxx,1.5,1.6 solid_color_background_data.hxx,1.4,1.5 spike_data.cxx,1.9,1.10 spike_data.hxx,1.6,1.7 starfield_background_data.cxx,1.7,1.8 starfield_background_data.hxx,1.3,1.4surface_background_data.cxx,1.9,1.10 surface_background_data.hxx,1.5,1.6 switch_door_data.cxx,1.9,1.10 switch_door_data.hxx,1.5,1.6 teleporter_data.cxx,1.10,1.11 teleporter_data.hxx,1.5,1.6thunderstorm_background_data.cxx,1.5,1.6 thunderstorm_background_data.hxx,1.4,1.5 worldobj_group_data.cxx,1.7,1.8 worldobj_group_data.hxx,1.5,1.6
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src/actions bridger.cxx,1.28,1.29 digger.cxx,1.21,1.22 exiter.cxx,1.15,1.16 miner.cxx,1.20,1.21
- Index(es):