summaryrefslogtreecommitdiff
path: root/game/network/rail.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-02-14 14:32:25 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-02-14 14:32:25 +0000
commit169068b417323232cc6aac440f3d7a2d918b5917 (patch)
tree6a97eba1b3027feaa8e5530f7df625c0430a61b1 /game/network/rail.cpp
parentAdd our first vehicle (diff)
downloadilt-169068b417323232cc6aac440f3d7a2d918b5917.tar.bz2
ilt-169068b417323232cc6aac440f3d7a2d918b5917.tar.xz
ilt-169068b417323232cc6aac440f3d7a2d918b5917.zip
Code tidy-up
Diffstat (limited to 'game/network/rail.cpp')
-rw-r--r--game/network/rail.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/network/rail.cpp b/game/network/rail.cpp
index 56feec0..1f3cc01 100644
--- a/game/network/rail.cpp
+++ b/game/network/rail.cpp
@@ -8,7 +8,7 @@
#include <gfx/models/texture.h>
#include <gfx/models/vertex.hpp>
#include <glm/gtx/transform.hpp>
-#include <glm/gtx/vector_angle.hpp>
+#include <initializer_list>
#include <maths.h>
#include <type_traits>
#include <utility>
@@ -17,7 +17,7 @@ RailLinks::RailLinks() : texture {Texture::cachedTexture.get("rails.jpg")} { }
void RailLinks::tick(TickDuration) { }
void
-RailLinks::joinLinks(LinkPtr l) const
+RailLinks::joinLinks(const LinkPtr & l) const
{
for (const auto & ol : links.objects) {
if (l != ol) {