Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ class NGMP_OnlineServices_LobbyInterface

void UpdateRoomDataCache(std::function<void(void)> fnCallback = nullptr);

std::function<void(LobbyMemberEntry)> m_cbPlayerDoesntHaveMap = nullptr;
void RegisterForPlayerDoesntHaveMapCallback(std::function<void(LobbyMemberEntry)> cb)
std::function<void(const LobbyMemberEntry&)> m_cbPlayerDoesntHaveMap = nullptr;
void RegisterForPlayerDoesntHaveMapCallback(std::function<void(const LobbyMemberEntry&)> cb)
{
m_cbPlayerDoesntHaveMap = cb;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1774,7 +1774,7 @@ void WOLGameSetupMenuInit( WindowLayout *layout, void *userData )
}

// player doesnt have map events
pLobbyInterface->RegisterForPlayerDoesntHaveMapCallback([](LobbyMemberEntry lobbyMember)
pLobbyInterface->RegisterForPlayerDoesntHaveMapCallback([](const LobbyMemberEntry& lobbyMember)
{
// tell the host the user doesn't have the map
UnicodeString mapDisplayName;
Expand Down
Loading