Skip to content

Commit

Permalink
Merge branch 'master' of github.com:beyond-all-reason/BYAR-Chobby int…
Browse files Browse the repository at this point in the history
…o beyond-all-reason_master
  • Loading branch information
FIr3baL committed Aug 7, 2024
2 parents cd36829 + a86e884 commit 35da5e2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libs/liblobby/lobby/interface.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1051,6 +1051,12 @@ function Interface:_OnClientBattleStatus(userName, battleStatus, teamColor)
local status = self:ParseBattleStatus(battleStatus)
status.teamColor = ParseTeamColor(teamColor)

local userInfo = self.users[userName]
if userInfo and (not userInfo.battleID or userInfo.battleID ~= self:GetMyBattleID()) then
Spring.Log(LOG_SECTION, LOG.WARNING, "Can't update user's battle status, user is not in our battle: ", userName)
return
end

self:_OnUpdateUserBattleStatus(userName, status)
if userName == self.myUserName then
self:_EnsureMyTeamNumberIsUnique()
Expand Down

0 comments on commit 35da5e2

Please sign in to comment.