From 7e3e1c00d23706f7442105977075cfe6eeafda6d Mon Sep 17 00:00:00 2001 From: krzys-h Date: Sun, 22 Mar 2015 14:56:35 +0100 Subject: [PATCH] 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 d045a00a..169e3c54 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); }