diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-08-29 05:34:18 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-08-29 05:34:18 +0000 |
| commit | 0511e1152a13ad99b51a819a75ef457404e86d4c (patch) | |
| tree | d8e31b98f18f7e027ee72a9792248072d93e5852 /src/game/client/components/players.cpp | |
| parent | b22dd1488cdae53d27215fda051fea9bfc72ac1d (diff) | |
| download | zcatch-0511e1152a13ad99b51a819a75ef457404e86d4c.tar.gz zcatch-0511e1152a13ad99b51a819a75ef457404e86d4c.zip | |
added sound component
Diffstat (limited to 'src/game/client/components/players.cpp')
| -rw-r--r-- | src/game/client/components/players.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/game/client/components/players.cpp b/src/game/client/components/players.cpp index 3178b82f..ed8d0c17 100644 --- a/src/game/client/components/players.cpp +++ b/src/game/client/components/players.cpp @@ -1,8 +1,3 @@ - -extern "C" { - #include <engine/e_config.h> -} - #include <engine/e_client_interface.h> #include <game/generated/g_protocol.hpp> #include <game/generated/gc_data.hpp> @@ -17,6 +12,7 @@ extern "C" { #include <game/client/components/flow.hpp> #include <game/client/components/skins.hpp> #include <game/client/components/effects.hpp> +#include <game/client/components/sounds.hpp> #include "players.hpp" @@ -178,7 +174,7 @@ void PLAYERS::render_player( static int64 skid_sound_time = 0; if(time_get()-skid_sound_time > time_freq()/10) { - snd_play_random(CHN_WORLD, SOUND_PLAYER_SKID, 0.25f, position); + gameclient.sounds->play(SOUNDS::CHN_WORLD, SOUND_PLAYER_SKID, 0.25f, position); skid_sound_time = time_get(); } |