This commit is contained in:
momo5502 2016-06-14 17:00:40 +02:00
parent 9e9553eade
commit ef58a174e1
3 changed files with 3 additions and 7 deletions

View File

@ -93,10 +93,6 @@ namespace Components
Party::LobbyMap[id.Bits] = Party::Container.Target; Party::LobbyMap[id.Bits] = Party::Container.Target;
Game::Steam_JoinLobby(id, 0); Game::Steam_JoinLobby(id, 0);
// Callback not registered on first try
// TODO: Fix :D
if (Party::LobbyMap.size() <= 1) Game::Steam_JoinLobby(id, 0);
} }
void Party::PlaylistError(std::string error) void Party::PlaylistError(std::string error)

View File

@ -97,6 +97,6 @@ namespace Steam
unsigned int User::UserHasLicenseForApp(SteamID steamID, unsigned int appID) unsigned int User::UserHasLicenseForApp(SteamID steamID, unsigned int appID)
{ {
return 1; return 0;
} }
} }

View File

@ -12,8 +12,8 @@ namespace Steam
uint64_t Callbacks::RegisterCall() uint64_t Callbacks::RegisterCall()
{ {
Callbacks::Calls[Callbacks::CallID] = false; Callbacks::Calls[++Callbacks::CallID] = false;
return Callbacks::CallID++; return Callbacks::CallID;
} }
void Callbacks::RegisterCallback(Callbacks::Base* handler, int callback) void Callbacks::RegisterCallback(Callbacks::Base* handler, int callback)