X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_triggers.pas;h=af000f0dda34bff1a628859e0ba878dd6d129ad0;hp=1673cefedadeab37f1f565cd3b100a7a6684119c;hb=d8c63c1a6eec80ee1df03d81124bd4f43da12b7e;hpb=dae5714e18d9846dc09f7b2bcd4ec1bc53de2f35 diff --git a/src/game/g_triggers.pas b/src/game/g_triggers.pas index 1673cef..af000f0 100644 --- a/src/game/g_triggers.pas +++ b/src/game/g_triggers.pas @@ -1352,9 +1352,15 @@ begin Result := True; if gLMSRespawn = LMS_RESPAWN_NONE then begin - g_Player_Get(ActivateUID).GetSecret(); + p := g_Player_Get(ActivateUID); + p.GetSecret(); Inc(gCoopSecretsFound); - if g_Game_IsNet then MH_SEND_GameStats(); + if g_Game_IsNet then + begin + MH_SEND_GameStats(); + if p.FClientID >= 0 then + MH_SEND_GameEvent(NET_EV_SECRET, p.UID, '', p.FClientID); + end; end; end;