summaryrefslogtreecommitdiffstats
path: root/src/object/task/taskbuild.cpp
diff options
context:
space:
mode:
authorkrzys-h <krzys_h@interia.pl>2013-02-13 16:57:59 +0100
committerkrzys-h <krzys_h@interia.pl>2013-02-13 16:58:19 +0100
commit8658d6da8060cdb741c668d4be1b571ef064d01d (patch)
tree3d494bbe1bb098cd0689e3d813c71db9b59a1938 /src/object/task/taskbuild.cpp
parentd3106c73ff6239e184dc5a83609f7d08391e6148 (diff)
downloadcolobot-8658d6da8060cdb741c668d4be1b571ef064d01d.tar.gz
colobot-8658d6da8060cdb741c668d4be1b571ef064d01d.tar.bz2
colobot-8658d6da8060cdb741c668d4be1b571ef064d01d.zip
Added Destroyer from Ceebot-Teen.
We need a new icon for it.
Diffstat (limited to 'src/object/task/taskbuild.cpp')
-rw-r--r--src/object/task/taskbuild.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/object/task/taskbuild.cpp b/src/object/task/taskbuild.cpp
index d82874c..5673ea4 100644
--- a/src/object/task/taskbuild.cpp
+++ b/src/object/task/taskbuild.cpp
@@ -98,6 +98,7 @@ bool CTaskBuild::CreateBuilding(Math::Vector pos, float angle)
if ( m_type == OBJECT_NUCLEAR ) m_buildingHeight = 40.0f;
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;
m_buildingHeight *= 0.25f;
m_buildingPos = m_building->GetPosition(0);
@@ -578,6 +579,7 @@ Error CTaskBuild::FlatFloor()
if ( m_type == OBJECT_NUCLEAR ) radius = 20.0f;
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;
center = m_metal->GetPosition(0);
@@ -666,6 +668,7 @@ Error CTaskBuild::FlatFloor()
type == OBJECT_ENERGY ||
type == OBJECT_LABO ||
type == OBJECT_NUCLEAR ||
+ type == OBJECT_DESTROYER||
type == OBJECT_START ||
type == OBJECT_END ||
type == OBJECT_INFO ||