summaryrefslogtreecommitdiff
path: root/eepers.adb
diff options
context:
space:
mode:
authorAlexey Kutepov <reximkut@gmail.com>2024-03-24 05:13:38 +0700
committerGitHub <noreply@github.com>2024-03-24 05:13:38 +0700
commite36e982828543ea70ce3fd8dc8add733420a1c49 (patch)
tree6f31ac7b4b4ead051215465bf384de3bd83154ac /eepers.adb
parent82c2d358d3f558f94c1802a8ebf590167eb1fd78 (diff)
parent71d9741a1f4c42d955f07ba936988e600e170526 (diff)
Merge pull request #2 from LainLayer/fix_gcc13_garbage
fixed bizzare gcc13 ada warnings and error
Diffstat (limited to 'eepers.adb')
-rw-r--r--eepers.adb10
1 files changed, 5 insertions, 5 deletions
diff --git a/eepers.adb b/eepers.adb
index d6f0101..ca84416 100644
--- a/eepers.adb
+++ b/eepers.adb
@@ -158,6 +158,11 @@ procedure Eepers is
X, Y: Integer;
end record;
+ function "="(A, B: IVector2) return Boolean is
+ begin
+ return A.X = B.X and then A.Y = B.Y;
+ end;
+
type Cell is (Cell_None, Cell_Floor, Cell_Wall, Cell_Barricade, Cell_Door, Cell_Explosion);
Cell_Size : constant Vector2 := (x => 50.0, y => 50.0);
@@ -190,11 +195,6 @@ procedure Eepers is
return A.X < B.X and then A.Y < B.Y;
end;
- function "="(A, B: IVector2) return Boolean is
- begin
- return A.X = B.X and then A.Y = B.Y;
- end;
-
function "+"(A, B: IVector2) return IVector2 is
begin
return (A.X + B.X, A.Y + B.Y);