From: binarymaster Date: Mon, 20 Jun 2016 19:30:58 +0000 (+0300) Subject: Update trigger shot structure to avoid alignment problems X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=768d1a2f7dede48362925a4ea213add3df997ad8;p=d2df-sdl.git Update trigger shot structure to avoid alignment problems --- diff --git a/src/shared/MAPDEF.pas b/src/shared/MAPDEF.pas index b1f55a7..8f46f5f 100644 --- a/src/shared/MAPDEF.pas +++ b/src/shared/MAPDEF.pas @@ -224,7 +224,7 @@ const TEXTURE_SPECIAL_ACID2 = DWORD(-3); TEXTURE_NONE = DWORD(-4); -Type +type TPoint = packed record X, Y: LongInt; end; @@ -304,13 +304,13 @@ Type HealInterval: Word; HealMax: Boolean; HealSilent: Boolean); - TRIGGER_SHOT: (ShotType: Byte; + TRIGGER_SHOT: (ShotPos: TPoint; + ShotType: Byte; + ShotTarget: Byte; ShotSound: Boolean; + ShotAllMap: Boolean; ShotPanelID: Integer; - ShotTarget: Byte; ShotIntSight: Word; - ShotAllMap: Boolean; - ShotPos: TPoint; ShotAngle: Word; ShotWait: Word; ShotAccuracy: Word;