mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-04-14 07:40:48 +02:00
Format Entity.cpp.
This commit is contained in:
parent
7d8a93324e
commit
30a413ca78
@ -5631,14 +5631,14 @@ void Entity::update(float delta) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ESS::get_singleton()) {
|
if (ESS::get_singleton()) {
|
||||||
for (int i = 0; i < ESS::get_singleton()->stat_get_count(); ++i) {
|
for (int i = 0; i < ESS::get_singleton()->stat_get_count(); ++i) {
|
||||||
if (stat_get_dirty(i)) {
|
if (stat_get_dirty(i)) {
|
||||||
ssend_stat(i, stat_gets_current(i));
|
ssend_stat(i, stat_gets_current(i));
|
||||||
|
|
||||||
stat_set_dirty(i, false);
|
stat_set_dirty(i, false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (_s_entity_controller == EntityEnums::ENITIY_CONTROLLER_AI && _s_ai.is_valid() && _s_ai->get_enabled()) {
|
if (_s_entity_controller == EntityEnums::ENITIY_CONTROLLER_AI && _s_ai.is_valid() && _s_ai->get_enabled()) {
|
||||||
if (_s_pet_owner)
|
if (_s_pet_owner)
|
||||||
@ -5976,7 +5976,7 @@ Entity::Entity() {
|
|||||||
//_action_bar_profile.instance();
|
//_action_bar_profile.instance();
|
||||||
_actionbar_locked = false;
|
_actionbar_locked = false;
|
||||||
|
|
||||||
ESS* ess_singleton = ESS::get_singleton();
|
ESS *ess_singleton = ESS::get_singleton();
|
||||||
|
|
||||||
if (ess_singleton) {
|
if (ess_singleton) {
|
||||||
_stats.resize(ess_singleton->stat_get_count());
|
_stats.resize(ess_singleton->stat_get_count());
|
||||||
|
Loading…
Reference in New Issue
Block a user