DEADSOFTWARE

game: fix monster projectiles in coop
authorfgsfds <pvt.fgsfds@gmail.com>
Thu, 6 May 2021 15:03:10 +0000 (18:03 +0300)
committerfgsfds <pvt.fgsfds@gmail.com>
Thu, 6 May 2021 15:03:10 +0000 (18:03 +0300)
src/game/g_weapons.pas

index a64d9872abf86eef5e60a7239d21f41a51308321..4f91b9fc7acc5c5e16e6a9138ac777793a97b471 100644 (file)
@@ -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