[colobot] 47/62: Fix non-scoreboard code battles, closes #1023
Didier Raboud
odyx at moszumanska.debian.org
Fri Nov 10 11:53:58 UTC 2017
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 <krzys_h at 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
More information about the Pkg-games-commits
mailing list