GIT
/
REPO
/
FRED-BOY
Projects
/
d2df-sdl.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed weapon autochange
[d2df-sdl.git]
/
src
/
game
/
g_triggers.pas
diff --git
a/src/game/g_triggers.pas
b/src/game/g_triggers.pas
index e75d79fb0b57c10d93a2b5d89e1da756951b7300..af000f0dda34bff1a628859e0ba878dd6d129ad0 100644
(file)
--- a/
src/game/g_triggers.pas
+++ b/
src/game/g_triggers.pas
@@
-809,7
+809,7
@@
begin
TRIGGER_SHOT_FLAME:
begin
g_Weapon_flame(wx, wy, dx, dy, 0, -1, True);
TRIGGER_SHOT_FLAME:
begin
g_Weapon_flame(wx, wy, dx, dy, 0, -1, True);
-
//snd := 'SOUND_WEAPON_FIREPLASMA
';
+
snd := 'SOUND_GAME_BURNING
';
end;
else exit;
end;
else exit;
@@
-1352,9
+1352,15
@@
begin
Result := True;
if gLMSRespawn = LMS_RESPAWN_NONE then
begin
Result := True;
if gLMSRespawn = LMS_RESPAWN_NONE then
begin
- g_Player_Get(ActivateUID).GetSecret();
+ p := g_Player_Get(ActivateUID);
+ p.GetSecret();
Inc(gCoopSecretsFound);
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;
end;
end;
DEADSOFTWARE 2012-2025