summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-02-21 14:50:30 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-02-21 14:50:30 +0000
commit25ae4e3a68ad044694f93efc9d6df2bfebf95e6a (patch)
treef1573b79c56c29022c96c55dfe61cd18d08efacb
parentFix rail vehicle height according to rail height (diff)
downloadilt-25ae4e3a68ad044694f93efc9d6df2bfebf95e6a.tar.bz2
ilt-25ae4e3a68ad044694f93efc9d6df2bfebf95e6a.tar.xz
ilt-25ae4e3a68ad044694f93efc9d6df2bfebf95e6a.zip
Fix drawing order of rail vehicle parts
-rw-r--r--game/vehicles/railloco.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/vehicles/railloco.cpp b/game/vehicles/railloco.cpp
index 6a43965..787712b 100644
--- a/game/vehicles/railloco.cpp
+++ b/game/vehicles/railloco.cpp
@@ -19,13 +19,13 @@
void
RailVehicle::render(const Shader & shader) const
{
- shader.setModel(location.GetModel());
texture->Bind();
- bodyMesh->Draw();
for (const auto & bogey : bogeys) {
shader.setModel(bogey.location.GetModel());
bogey.mesh->Draw();
}
+ shader.setModel(location.GetModel());
+ bodyMesh->Draw();
}
void