From ed682e59e24d29ff40949d410f12cc936c0b628d Mon Sep 17 00:00:00 2001 From: fgsfds Date: Thu, 6 May 2021 18:03:10 +0300 Subject: [PATCH] game: fix monster projectiles in coop --- src/game/g_weapons.pas | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/g_weapons.pas b/src/game/g_weapons.pas index a64d987..4f91b9f 100644 --- a/src/game/g_weapons.pas +++ b/src/game/g_weapons.pas @@ -894,8 +894,9 @@ begin end; // È â êîíöå èãðîêîâ, íî òîëüêî åñëè ïîëîæåíî - // (èëè friendlyfire, èëè friendly_hit_projectile) - if LongBool(gGameSettings.Options and (GAME_OPTION_TEAMDAMAGE or GAME_OPTION_TEAMHITPROJECTILE)) then + // (èëè ñíàðÿä îò ìîíñòðà, èëè friendlyfire, èëè friendly_hit_projectile) + if (g_GetUIDType(SpawnerUID) <> UID_PLAYER) or + LongBool(gGameSettings.Options and (GAME_OPTION_TEAMDAMAGE or GAME_OPTION_TEAMHITPROJECTILE)) then begin if PlayerHit() then begin -- 2.29.2