Browse files

Fixed warning beep sound to be synchronously looped.

  • Loading branch information...
1 parent 8244fc1 commit 029bda0e4cfcb206ae7c24f90a406328a63b8ae8 @petarov committed Jun 9, 2013
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/CVehicle.cpp
View
8 src/CVehicle.cpp
@@ -1382,7 +1382,13 @@ void CVehicle::Update()
// PLAY SOUND
if (warning_time < _game->Timer.Time())
{
- warning_time = _game->Timer.Time() + 1000;
+ /*
+ * 1176sec - that's how long the warning beep sound is.
+ * Normally we would like to play this sound looped and stop it after
+ * the vehicle is destroyed. However, currently there is no Stop() call
+ * implemented in the CSounds class.
+ */
+ warning_time = _game->Timer.Time() + 1176;
_game->Sounds.Play(SND_WARNING, (int) x);
}
}

0 comments on commit 029bda0

Please sign in to comment.