mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 01:26:30 +00:00
Make multiples states changes in one tick (if relevant)
--HG-- branch : fix_speed
This commit is contained in:
parent
1d960d91ff
commit
0e467cba86
1 changed files with 8 additions and 1 deletions
|
@ -456,7 +456,14 @@ void CPhraseManager::updatePhrases()
|
||||||
}
|
}
|
||||||
|
|
||||||
// update this phrase
|
// update this phrase
|
||||||
|
CSPhrase::TPhraseState old_state;
|
||||||
|
do
|
||||||
|
{
|
||||||
|
old_state = phrase->state();
|
||||||
updateEntityCurrentAction( (*it).first, entityPhrases);
|
updateEntityCurrentAction( (*it).first, entityPhrases);
|
||||||
|
phrase = entityPhrases.getCurrentAction();
|
||||||
|
//Every time we get the next action, th phrase might be deleted (if the action is invalid or finished for non-cyclic actions like digging / crafting), always check !
|
||||||
|
} while(phrase != NULL && old_state != phrase->state());
|
||||||
|
|
||||||
// get next entity sentences
|
// get next entity sentences
|
||||||
++it;
|
++it;
|
||||||
|
|
Loading…
Reference in a new issue