From 96dfe64a58d81ef1c3fd96d71489c8d67e5005ea Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Thu, 25 Jun 2015 18:43:04 -0400 Subject: [PATCH] Close button forfeit menu opens for unrated battles too Previously, the close button forfeit menu only appeared for rated battles. --- js/client-battle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/client-battle.js b/js/client-battle.js index 03ecb7d34..9034b9815 100644 --- a/js/client-battle.js +++ b/js/client-battle.js @@ -44,7 +44,7 @@ if (this.battle) this.battle.destroy(); }, requestLeave: function() { - if (this.side && this.battle && this.battle.rated && !this.battle.done) { + if (this.side && this.battle && !this.battle.done) { app.addPopup(ForfeitPopup, {room: this}); return false; }