mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-20 23:24:16 +00: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user