Skip to content
This repository has been archived by the owner on Mar 19, 2023. It is now read-only.
/ DF Public archive

Commit

Permalink
Editor: Fix shifting trigger shot point
Browse files Browse the repository at this point in the history
  • Loading branch information
binarymaster committed Jan 9, 2016
1 parent f8d54f1 commit b9ae046
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Editor2 Source/g_map.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2490,7 +2490,6 @@ procedure DrawMap();
procedure ShiftMapObjects(dx, dy: Integer);
var
i: Integer;

begin
if gPanels <> nil then
for i := 0 to High(gPanels) do
Expand Down Expand Up @@ -2556,6 +2555,12 @@ procedure ShiftMapObjects(dx, dy: Integer);
Inc(gTriggers[i].Data.ItemPos.X, dx);
Inc(gTriggers[i].Data.ItemPos.Y, dy);
end;

TRIGGER_SHOT:
begin
Inc(gTriggers[i].Data.ShotPos.X, dx);
Inc(gTriggers[i].Data.ShotPos.Y, dy);
end;
end;
end;
end;
Expand Down

0 comments on commit b9ae046

Please sign in to comment.