DEADSOFTWARE

game: execute onwadend event after state is changed to INTERCUSTOM
authorfgsfds <pvt.fgsfds@gmail.com>
Sat, 8 Jan 2022 20:03:40 +0000 (23:03 +0300)
committerfgsfds <pvt.fgsfds@gmail.com>
Sat, 8 Jan 2022 20:03:40 +0000 (23:03 +0300)
src/game/g_game.pas

index 7fe421c36bd35ee87f43af33f9a981b1b00ad369..256a564513e88b9c3b08e82e3a2b26209cee7296 100644 (file)
@@ -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 // Çàêîí÷èëàñü ïîñëåäíÿÿ êàðòà â Îäèíî÷íîé èãðå