[colobot] 290/390: Made sniffer flatground button available only with EnableBuild
Didier Raboud
odyx at moszumanska.debian.org
Fri Jun 12 14:21:56 UTC 2015
This is an automated email from the git hooks/post-receive script.
odyx pushed a commit to branch upstream/latest
in repository colobot.
commit 7e3e1c00d23706f7442105977075cfe6eeafda6d
Author: krzys-h <krzys_h at interia.pl>
Date: Sun Mar 22 14:56:35 2015 +0100
Made sniffer flatground button available only with EnableBuild
---
src/object/brain.cpp | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/object/brain.cpp b/src/object/brain.cpp
index d045a00..169e3c5 100644
--- a/src/object/brain.cpp
+++ b/src/object/brain.cpp
@@ -1492,11 +1492,14 @@ bool CBrain::CreateInterface(bool bSelect)
pw->CreateButton(pos, dim, 40, EVENT_OBJECT_SEARCH);
DefaultEnter(pw, EVENT_OBJECT_SEARCH);
- pos.x = ox+sx*9.0f;
- pos.y = oy+sy*0.5f;
- pw->CreateButton(pos, dim, 111, EVENT_OBJECT_GFLAT);
+ if ( g_build&BUILD_GFLAT )
+ {
+ pos.x = ox+sx*9.0f;
+ pos.y = oy+sy*0.5f;
+ pw->CreateButton(pos, dim, 111, EVENT_OBJECT_GFLAT);
+ }
- pos.x = ox+sx*10.1f;
+ pos.x = ox+sx*10.1f;
pos.y = oy+sy*0.5f;
pw->CreateButton(pos, dim, 11, EVENT_OBJECT_DELSEARCH);
}
--
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