Fix: no fast forward in network was ensured only from GUI side (#11206)

This commit is contained in:
Loïc Guilloux 2023-08-17 21:14:39 +02:00 committed by GitHub
parent e8c49d3543
commit 2bf3c02fbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -287,6 +287,8 @@ static CallBackFunction ToolbarPauseClick(Window *w)
*/
static CallBackFunction ToolbarFastForwardClick(Window *w)
{
if (_networking) return CBF_NONE; // no fast forward in network game
ChangeGameSpeed(_game_speed == 100);
if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP);