mirror of
https://github.com/cxong/cdogs-sdl.git
synced 2025-07-23 07:23:01 +02:00
Add victory sound (#39)
This commit is contained in:
BIN
sounds/victory.ogg
Normal file
BIN
sounds/victory.ogg
Normal file
Binary file not shown.
4
sounds/victory.txt
Normal file
4
sounds/victory.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Derived from VICTORY CRY REVERB 2.wav
|
||||
by chripei
|
||||
http://freesound.org/people/chripei/sounds/165491/
|
||||
http://creativecommons.org/licenses/by/3.0/
|
@@ -658,6 +658,7 @@ static void DrawObjectiveInfo(
|
||||
static void VictoryDraw(void *data);
|
||||
void ScreenVictory(CampaignOptions *c)
|
||||
{
|
||||
SoundPlay(&gSoundDevice, StrSound("victory"));
|
||||
GameLoopData gData = GameLoopDataNew(
|
||||
NULL, GameLoopWaitForAnyKeyOrButtonFunc,
|
||||
c, VictoryDraw);
|
||||
@@ -812,6 +813,7 @@ static void ShowPlayerScore(const Vec2i pos, const int score)
|
||||
static void DogfightFinalScoresDraw(void *data);
|
||||
void ScreenDogfightFinalScores(void)
|
||||
{
|
||||
SoundPlay(&gSoundDevice, StrSound("victory"));
|
||||
GameLoopData gData = GameLoopDataNew(
|
||||
NULL, GameLoopWaitForAnyKeyOrButtonFunc,
|
||||
NULL, DogfightFinalScoresDraw);
|
||||
@@ -879,6 +881,7 @@ static void DogfightFinalScoresDraw(void *data)
|
||||
static void DeathmatchFinalScoresDraw(void *data);
|
||||
void ScreenDeathmatchFinalScores(void)
|
||||
{
|
||||
SoundPlay(&gSoundDevice, StrSound("victory"));
|
||||
GameLoopData gData = GameLoopDataNew(
|
||||
NULL, GameLoopWaitForAnyKeyOrButtonFunc,
|
||||
NULL, DeathmatchFinalScoresDraw);
|
||||
|
Reference in New Issue
Block a user