summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-02-15 19:27:40 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-02-15 19:27:40 +0000
commite14203bdd2e983c0d86c7c72b5ce99aeb27fe355 (patch)
treea92b04bf289b884c2e6873b1c820a14ef4eccf0b
parentBasic support for rail wagons (diff)
downloadilt-e14203bdd2e983c0d86c7c72b5ce99aeb27fe355.tar.bz2
ilt-e14203bdd2e983c0d86c7c72b5ce99aeb27fe355.tar.xz
ilt-e14203bdd2e983c0d86c7c72b5ce99aeb27fe355.zip
Return a Physical's whole location, not just position
-rw-r--r--game/physical.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/physical.h b/game/physical.h
index 4ad8a49..5fdc253 100644
--- a/game/physical.h
+++ b/game/physical.h
@@ -19,9 +19,9 @@ public:
void render(const Shader & shader) const override;
[[nodiscard]] const auto &
- getPosition() const
+ getLocation() const
{
- return location.GetPos();
+ return location;
}
protected: