summaryrefslogtreecommitdiff
path: root/game/network
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-01-02 19:55:40 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-01-02 19:55:40 +0000
commitb5b9c95de160a97701777d37187de194d0b29e61 (patch)
tree9acc47919f90b119ee6029266f565bd33e0c3630 /game/network
parentSeparate geographic data (GeoData) from its visual representation(s) (Terrain) (diff)
downloadilt-b5b9c95de160a97701777d37187de194d0b29e61.tar.bz2
ilt-b5b9c95de160a97701777d37187de194d0b29e61.tar.xz
ilt-b5b9c95de160a97701777d37187de194d0b29e61.zip
Replace include guard macros with pragma once
Diffstat (limited to 'game/network')
-rw-r--r--game/network/link.h5
-rw-r--r--game/network/network.h5
-rw-r--r--game/network/rail.h5
-rw-r--r--game/network/routeWalker.h5
4 files changed, 4 insertions, 16 deletions
diff --git a/game/network/link.h b/game/network/link.h
index 16ae5f7..51c29ff 100644
--- a/game/network/link.h
+++ b/game/network/link.h
@@ -1,5 +1,4 @@
-#ifndef LINK_H
-#define LINK_H
+#pragma once
#include <array>
#include <glm/glm.hpp>
@@ -88,5 +87,3 @@ public:
Arc arc;
};
LinkCurve::~LinkCurve() = default;
-
-#endif
diff --git a/game/network/network.h b/game/network/network.h
index 31fc744..3be7943 100644
--- a/game/network/network.h
+++ b/game/network/network.h
@@ -1,5 +1,4 @@
-#ifndef NETWORK_H
-#define NETWORK_H
+#pragma once
#include "link.h"
#include <collection.hpp>
@@ -53,5 +52,3 @@ public:
void render(const Shader &) const override;
};
-
-#endif
diff --git a/game/network/rail.h b/game/network/rail.h
index 47969d6..758beb6 100644
--- a/game/network/rail.h
+++ b/game/network/rail.h
@@ -1,5 +1,4 @@
-#ifndef RAILLINKS_H
-#define RAILLINKS_H
+#pragma once
#include "chronology.hpp"
#include "game/worldobject.h"
@@ -58,5 +57,3 @@ public:
private:
void tick(TickDuration elapsed) override;
};
-
-#endif
diff --git a/game/network/routeWalker.h b/game/network/routeWalker.h
index d70103f..e0577ae 100644
--- a/game/network/routeWalker.h
+++ b/game/network/routeWalker.h
@@ -1,5 +1,4 @@
-#ifndef ROUTEWALKER_H
-#define ROUTEWALKER_H
+#pragma once
#include "link.h"
#include <set>
@@ -19,5 +18,3 @@ private:
Solution bestSolution, currentSolution;
float solutionLength;
};
-
-#endif