Only allow people to join lobbies with the overlay if they have been invited first.

This commit is contained in:
Mr_Goldberg 2020-02-02 19:07:30 -05:00
parent 245d379720
commit b4205535fb
No known key found for this signature in database
GPG key ID: 8597D87419DEF278
2 changed files with 31 additions and 45 deletions

View file

@ -32,7 +32,7 @@ struct friend_window_state
std::string chat_history;
char chat_input[max_chat_len];
bool has_lobby;
bool joinable;
};
struct Friend_Less
@ -110,7 +110,7 @@ class Steam_Overlay
void Callback(Common_Message* msg);
void RunCallbacks();
bool FriendHasLobby(uint64 friend_id);
bool FriendJoinable(std::pair<const Friend, friend_window_state> &f);
bool IHaveLobby();
void NotifyUser(friend_window_state& friend_state);