This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch debian/master
in repository colobot.

commit 387b7b539661bc375b93f86166adc28bc87393e6
Author: krzys-h <krzy...@interia.pl>
Date:   Sat Nov 4 11:23:08 2017 +0100

    Fix non-scoreboard code battles, closes #1023
---
 src/level/robotmain.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/level/robotmain.cpp b/src/level/robotmain.cpp
index a92b10b..21daeca 100644
--- a/src/level/robotmain.cpp
+++ b/src/level/robotmain.cpp
@@ -5843,6 +5843,7 @@ void CRobotMain::CreateCodeBattleInterface()
             pw->CreateButton(pos, ddim, 13, EVENT_CODE_BATTLE_SPECTATOR);
         }
 
+        if (!m_scoreboard) return;
         pos.y += ddim.y;
         ddim.y = textHeight;
         int i = 0;

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-games/colobot.git

_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to