mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-04-17 21:26:35 +02:00
Fix typo, and respect the should_process flag.
This commit is contained in:
parent
abb564acdc
commit
6a954f3381
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user