diff options
author | krzys-h <krzys_h@interia.pl> | 2014-03-03 21:55:28 +0100 |
---|---|---|
committer | krzys-h <krzys_h@interia.pl> | 2014-03-03 21:55:28 +0100 |
commit | fbe2bf8bc7d61a7a13759f56e65181e16e25806b (patch) | |
tree | a44ca49a4b91d67cb22f5c026b6cd141574790cc /src/object/task/taskbuild.cpp | |
parent | a806d4257ce3f10a23441cfa962b9caf5deebb85 (diff) | |
download | colobot-fbe2bf8bc7d61a7a13759f56e65181e16e25806b.tar.gz colobot-fbe2bf8bc7d61a7a13759f56e65181e16e25806b.tar.bz2 colobot-fbe2bf8bc7d61a7a13759f56e65181e16e25806b.zip |
Added special mode in scene for bots to build more buildings than they usualy can
Will be used in "Leaving Earth" missions for making decorative bots building base
Diffstat (limited to 'src/object/task/taskbuild.cpp')
-rw-r--r-- | src/object/task/taskbuild.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/object/task/taskbuild.cpp b/src/object/task/taskbuild.cpp index 4a62a4a..4dfd6fb 100644 --- a/src/object/task/taskbuild.cpp +++ b/src/object/task/taskbuild.cpp @@ -100,6 +100,7 @@ bool CTaskBuild::CreateBuilding(Math::Vector pos, float angle) if ( m_type == OBJECT_PARA ) m_buildingHeight = 68.0f; if ( m_type == OBJECT_INFO ) m_buildingHeight = 19.0f; if ( m_type == OBJECT_DESTROYER) m_buildingHeight = 35.0f; + if ( m_type == OBJECT_HUSTON ) m_buildingHeight = 45.0f; m_buildingHeight *= 0.25f; m_buildingPos = m_building->GetPosition(0); @@ -574,7 +575,7 @@ Error CTaskBuild::FlatFloor() if ( m_type == OBJECT_PARA ) radius = 20.0f; if ( m_type == OBJECT_INFO ) radius = 5.0f; if ( m_type == OBJECT_DESTROYER) radius = 20.0f; - if ( radius == 0.0f ) return ERR_GENERIC; + //if ( radius == 0.0f ) return ERR_GENERIC; center = m_metal->GetPosition(0); angle = m_terrain->GetFineSlope(center); |