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:
parent
84c2dc3f15
commit
af4896b4c5
@ -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();
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user