From 6a954f3381bb34b81e7e26f5f9058d850761d135 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 1 Dec 2019 01:16:28 +0100 Subject: [PATCH] Fix typo, and respect the should_process flag. --- entities/data/entity_class_data.h | 2 +- entities/entity.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/entities/data/entity_class_data.h b/entities/data/entity_class_data.h index ecde212..a6d1a9e 100644 --- a/entities/data/entity_class_data.h +++ b/entities/data/entity_class_data.h @@ -242,7 +242,7 @@ private: Ref _stat_data; - Vector > _entity_resources; + Vector > _entity_resources; Vector > _specs; Vector > _spells; Vector > _start_spells; diff --git a/entities/entity.cpp b/entities/entity.cpp index 98e56db..7055105 100644 --- a/entities/entity.cpp +++ b/entities/entity.cpp @@ -4749,7 +4749,8 @@ void Entity::update(float delta) { ERR_CONTINUE(!res.is_valid()); - res->process_server(delta); + if (res->get_should_process()) + res->process_server(delta); } } @@ -4763,7 +4764,8 @@ void Entity::update(float delta) { ERR_CONTINUE(!res.is_valid()); - res->process_client(delta); + if (res->get_should_process()) + res->process_client(delta); } } }