From: fgsfds Date: Thu, 6 May 2021 15:03:10 +0000 (+0300) Subject: game: fix monster projectiles in coop X-Git-Url: https://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=commitdiff_plain;h=ed682e59e24d29ff40949d410f12cc936c0b628d game: fix monster projectiles in coop --- 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