Skip to content

Commit

Permalink
Fix small theme error when not in multiplayer
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Mar 7, 2019
1 parent 945acc0 commit c121787
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -617,16 +617,18 @@ do
-- do-end block to minimize the scope of 'f'
local areWeReadiedUp = function()
local top = SCREENMAN:GetTopScreen()
local qty = top:GetUserQty()
local loggedInUser = NSMAN:GetLoggedInUsername()
for i = 1, qty do
local user = top:GetUser(i)
if user == loggedInUser then
return top:GetUserReady(i)
if top:GetName() == "ScreenNetSelectMusic" then
local qty = top:GetUserQty()
local loggedInUser = NSMAN:GetLoggedInUsername()
for i = 1, qty do
local user = top:GetUser(i)
if user == loggedInUser then
return top:GetUserReady(i)
end
end
-- ???? this should never happen
error "Could not find ourselves in the userlist"
end
-- ???? this should never happen
error "Could not find ourselves in the userlist"
end
readyButton = toggleButton("Unready", "Ready", "/ready", 50, areWeReadiedUp)
readyButton.UsersUpdateMessageCommand = function(self)
Expand Down

0 comments on commit c121787

Please sign in to comment.