From: fgsfds Date: Sat, 8 Jan 2022 20:03:40 +0000 (+0300) Subject: game: execute onwadend event after state is changed to INTERCUSTOM X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=db664c0202c77b9f402ea050bd4776f349d6ee4a;p=d2df-sdl.git game: execute onwadend event after state is changed to INTERCUSTOM --- diff --git a/src/game/g_game.pas b/src/game/g_game.pas index 7fe421c..256a564 100644 --- a/src/game/g_game.pas +++ b/src/game/g_game.pas @@ -1906,6 +1906,7 @@ begin // Çàêîí÷èëñÿ óðîâåíü â Ñâîåé èãðå: if gGameSettings.GameType in [GT_CUSTOM, GT_SERVER, GT_CLIENT] then begin + gState := STATE_INTERCUSTOM; InterReadyTime := -1; if gLastMap and (gGameSettings.GameMode = GM_COOP) then begin @@ -1915,9 +1916,7 @@ begin end else gMusic.SetByName('MUSIC_ROUNDMUS'); - gMusic.Play(); - gState := STATE_INTERCUSTOM; e_UnpressAllKeys(); end else // Çàêîí÷èëàñü ïîñëåäíÿÿ êàðòà â Îäèíî÷íîé èãðå