From a3962cf56c3e652202f0e9192857c0b15c1398b7 Mon Sep 17 00:00:00 2001
From: binarymaster <x86corez@gmail.com>
Date: Mon, 20 Jun 2016 22:34:10 +0300
Subject: [PATCH] Update trigger shot structure to avoid alignment problems

---
 .gitignore            | 18 ++++++++++++++++++
 src/shared/MAPDEF.pas |  8 ++++----
 2 files changed, 22 insertions(+), 4 deletions(-)
 create mode 100644 .gitignore

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..3f29eae
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,18 @@
+# Project-specific
+bin/
+tmp/
+
+# Precompiled and Delphi-specific files
+# without *.res
+*.obj
+*.dcu
+*.cbk
+*.dof
+*.ddp
+
+# Commonly used temporary files
+~*
+*.~*
+*.tmp
+*.bak
+*.lps
diff --git a/src/shared/MAPDEF.pas b/src/shared/MAPDEF.pas
index 8ad2ccd..c18b3f1 100644
--- a/src/shared/MAPDEF.pas
+++ b/src/shared/MAPDEF.pas
@@ -290,13 +290,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;
-- 
2.29.2