mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Serialize the isIdleConfirmed for the AI
The AI only noticed for changes to `isIdleConfirmed`. That is done to avoid recursions and don't send to many messages. But when the AI is deserialized it get's `isIdle` from the simulation. Leading to an OOS.
This commit is contained in:
parent
be03605eac
commit
6d31e6de89
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ function getFullRepresentation(entityID)
|
|||
if (cmpUnitAI)
|
||||
{
|
||||
// Updated by OnUnitIdleChanged
|
||||
ret.idle = cmpUnitAI.IsIdle();
|
||||
ret.idle = !!cmpUnitAI.isIdleConfirmed;
|
||||
// Updated by OnUnitStanceChanged
|
||||
ret.stance = cmpUnitAI.GetStanceName();
|
||||
// Updated by OnUnitAIStateChanged
|
||||
|
|
|
|||
Loading…
Reference in a new issue