summaryrefslogtreecommitdiffstats
path: root/src/object/brain.cpp
diff options
context:
space:
mode:
authorkrzys-h <krzys_h@interia.pl>2013-04-29 17:26:32 +0200
committerkrzys-h <krzys_h@interia.pl>2013-04-29 17:26:32 +0200
commit75950c55ba2065e792dc573adbaa31897cbc113a (patch)
treec0fb55c900d056550b3383e1ef9979b6664ca85e /src/object/brain.cpp
parentc2932f4ee3c65aa5546a8b2fd605af9043aba72a (diff)
downloadcolobot-75950c55ba2065e792dc573adbaa31897cbc113a.tar.gz
colobot-75950c55ba2065e792dc573adbaa31897cbc113a.tar.bz2
colobot-75950c55ba2065e792dc573adbaa31897cbc113a.zip
MissionController improved
Diffstat (limited to 'src/object/brain.cpp')
-rw-r--r--src/object/brain.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/object/brain.cpp b/src/object/brain.cpp
index f42ea7e..266a8ac 100644
--- a/src/object/brain.cpp
+++ b/src/object/brain.cpp
@@ -1309,7 +1309,8 @@ bool CBrain::CreateInterface(bool bSelect)
type == OBJECT_ANT ||
type == OBJECT_SPIDER ||
type == OBJECT_BEE ||
- type == OBJECT_WORM ) // vehicle?
+ type == OBJECT_WORM ||
+ type == OBJECT_CONTROLLER) // vehicle?
{
if (!(m_main->GetRetroMode())) {
ddim.x = dim.x*5.1f;
@@ -1334,7 +1335,8 @@ bool CBrain::CreateInterface(bool bSelect)
type == OBJECT_MOBILEfi ||
type == OBJECT_MOBILEfs ||
type == OBJECT_MOBILEft ||
- type == OBJECT_BEE ) // driving?
+ type == OBJECT_BEE ||
+ type == OBJECT_CONTROLLER) // driving?
{
pos.x = ox+sx*6.4f;
pos.y = oy+sy*0;
@@ -1346,8 +1348,9 @@ bool CBrain::CreateInterface(bool bSelect)
pb = pw->CreateButton(pos, dim, 28, EVENT_OBJECT_GASUP);
pb->SetImmediat(true);
- if ( type != OBJECT_HUMAN ||
- m_object->GetOption() != 2 )
+ if ( (type != OBJECT_HUMAN &&
+ type != OBJECT_CONTROLLER) ||
+ m_object->GetOption() != 2 )
{
pos.x = ox+sx*15.3f;
pos.y = oy+sy*0;
@@ -2305,7 +2308,8 @@ void CBrain::UpdateInterface()
type == OBJECT_ANT ||
type == OBJECT_SPIDER ||
type == OBJECT_BEE ||
- type == OBJECT_WORM ) // vehicle?
+ type == OBJECT_WORM ||
+ type == OBJECT_CONTROLLER) // vehicle?
{
bRun = false;
if ( m_script[m_selScript] != 0 )