DEADSOFTWARE

game: fix bfg ball offset
authorDeaDDooMER <deaddoomer@deadsoftware.ru>
Mon, 27 Feb 2023 00:21:49 +0000 (03:21 +0300)
committerDeaDDooMER <deaddoomer@deadsoftware.ru>
Mon, 27 Feb 2023 00:21:49 +0000 (03:21 +0300)
src/game/g_weapons.pas

index 8554e2264e3ecdc711a000b69b75f738c68c50c9..c4fa747a2da29d779fd14e4ac3719a06b3c634f0 100644 (file)
@@ -2596,6 +2596,12 @@ begin
         p.X := Obj.Rect.Width div 2;
         p.Y := Obj.Rect.Height div 2;
 
+        if Shots[i].ShotType = WEAPON_BFG then
+        begin
+          DEC(fX, 6);
+          DEC(fY, 7);
+        end;
+
         if Animation <> nil then
           begin
             if (Shots[i].ShotType = WEAPON_BARON_FIRE) or