1
0
forked from 0ad/0ad

Set matchID at the start of a new match. Fix ratings being broken.

Refs: dc18d94030

Patch by: @user1
Discussed with: @bb
Reviewed by: @wraitii
This was SVN commit r25859.
This commit is contained in:
Stan 2021-08-25 11:05:53 +00:00
parent 84c2dc3f15
commit af4896b4c5

View File

@ -2,7 +2,7 @@ GameSettings.prototype.Attributes.MatchID = class MatchID extends GameSetting
{
init()
{
this.matchID = Engine.GetMatchID();
this.matchID = 0;
}
toInitAttributes(attribs)
@ -15,4 +15,9 @@ GameSettings.prototype.Attributes.MatchID = class MatchID extends GameSetting
if (attribs.matchID !== undefined)
this.matchID = attribs.matchID;
}
pickRandomItems()
{
this.matchID = Engine.GetMatchID();
}
};