Fix typo, and respect the should_process flag.

This commit is contained in:
Relintai 2019-12-01 01:16:28 +01:00
parent abb564acdc
commit 6a954f3381
2 changed files with 5 additions and 3 deletions

View File

@ -242,7 +242,7 @@ private:
Ref<StatData> _stat_data;
Vector<Ref<EntityResource> > _entity_resources;
Vector<Ref<EntityResourceData> > _entity_resources;
Vector<Ref<CharacterSpec> > _specs;
Vector<Ref<Spell> > _spells;
Vector<Ref<Spell> > _start_spells;

View File

@ -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);
}
}
}