Stops all sounds for a player
| 1377 | |
| 1378 | // Stops all sounds for a player |
| 1379 | void PlayerStopSounds(int slot) { |
| 1380 | if (Players[slot].afterburner_sound_handle != -1) { |
| 1381 | Sound_system.StopSoundImmediate(Players[slot].afterburner_sound_handle); |
| 1382 | Players[slot].afterburner_sound_handle = -1; |
| 1383 | } |
| 1384 | |
| 1385 | if (Players[slot].thruster_sound_handle != -1) { |
| 1386 | Sound_system.StopSoundImmediate(Players[slot].thruster_sound_handle); |
| 1387 | Players[slot].thruster_sound_handle = -1; |
| 1388 | } |
| 1389 | } |
| 1390 | |
| 1391 | // Called when a player is entering the game for the first time |
| 1392 | void InitPlayerNewGame(int slot) { |
no test coverage detected