1
0
forked from mirrors/0ad

Serialize canPlay property in Petra

This was forgotten in 7b1d4426aa.

Fixes: #8674
This commit is contained in:
phosit
2026-01-20 18:26:29 +01:00
parent b93634fb28
commit a6357322e9
@@ -31,6 +31,7 @@ PetraBot.prototype.CustomInit = function(gameState)
if (this.isDeserialized)
{
// WARNING: the deserializations should not modify the metadatas infos inside their init functions
this.canPlay = this.data.canPlay;
this.turn = this.data.turn;
this.playedTurn = this.data.playedTurn;
this.elapsedTime = this.data.elapsedTime;
@@ -151,6 +152,7 @@ PetraBot.prototype.Serialize = function()
}
return {
"canPlay": this.canPlay,
"uniqueIDs": this.uniqueIDs,
"turn": this.turn,
"playedTurn": this.playedTurn,