X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FEntity.hpp;fp=src%2Fworld%2FEntity.hpp;h=6affc21762a2bae9354d223c2203e5133d4317fa;hb=7f15e27277382f0176a23dd21702f9d113581763;hp=4f0d3c435f58e709a4c33dba335453f03b75d81b;hpb=8de9eb53c9ae92c6bfa8f01cf6659b683fe2155d;p=blank.git diff --git a/src/world/Entity.hpp b/src/world/Entity.hpp index 4f0d3c4..6affc21 100644 --- a/src/world/Entity.hpp +++ b/src/world/Entity.hpp @@ -74,8 +74,7 @@ public: /// get a ray in entity's face direction originating from center of vision Ray Aim(const Chunk::Pos &chunk_offset) const noexcept; - void SetState(const EntityState &s) noexcept { state = s; } - EntityState &GetState() noexcept { return state; } + void SetState(const EntityState &s) noexcept { state = s; UpdateModel(); } const EntityState &GetState() const noexcept { return state; } void Ref() noexcept { ++ref_count; }