X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FEntity.hpp;h=6affc21762a2bae9354d223c2203e5133d4317fa;hb=80a9a59d71a7b144c12f64cbef4644751bd54745;hp=4f0d3c435f58e709a4c33dba335453f03b75d81b;hpb=33b37e7242e4cbfa76e4a0d6e5bb54223b541162;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; }