From 62d5ed7c2740a176f082ab649d6eec1a15774498 Mon Sep 17 00:00:00 2001 From: Jonas Weinz Date: Thu, 4 Apr 2019 16:39:23 +0200 Subject: [PATCH] fixing friends option --- online_match_manager.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/online_match_manager.js b/online_match_manager.js index 9fb24d4..2c108cb 100644 --- a/online_match_manager.js +++ b/online_match_manager.js @@ -34,7 +34,9 @@ class OnlineMatchManager this.match_button_div = tmp[0]; this.match_button_option = tmp[2]; - if (this.game_server_connection.temporary_session || this.game_server_connection.is_friend(this.online_opponent.get_name())) + // Note: unranked matches means that not both users have a full account, so they cannot be friends + + if (!this.ranked || this.game_server_connection.is_friend(this.online_opponent.get_name())) { this.match_button_option.disabled = true; }