diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-21 14:50:30 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-21 14:50:30 +0000 |
commit | 25ae4e3a68ad044694f93efc9d6df2bfebf95e6a (patch) | |
tree | f1573b79c56c29022c96c55dfe61cd18d08efacb /game | |
parent | Fix rail vehicle height according to rail height (diff) | |
download | ilt-25ae4e3a68ad044694f93efc9d6df2bfebf95e6a.tar.bz2 ilt-25ae4e3a68ad044694f93efc9d6df2bfebf95e6a.tar.xz ilt-25ae4e3a68ad044694f93efc9d6df2bfebf95e6a.zip |
Fix drawing order of rail vehicle parts
Diffstat (limited to 'game')
-rw-r--r-- | game/vehicles/railloco.cpp | 4 |
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 |