From a4482f1a7cb493646e2ba78def500a42156fd3a1 Mon Sep 17 00:00:00 2001 From: DavivaD Date: Mon, 24 Jul 2017 23:20:21 +0200 Subject: [PATCH] Decrease radius of squashing items. --- src/object/task/taskterraform.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/object/task/taskterraform.cpp b/src/object/task/taskterraform.cpp index 06dc72c2..380d26f6 100644 --- a/src/object/task/taskterraform.cpp +++ b/src/object/task/taskterraform.cpp @@ -363,7 +363,7 @@ bool CTaskTerraform::Terraform() type = pObj->GetType(); if ( type == OBJECT_NULL ) continue; - if ( type == OBJECT_TEEN34 || + if ( type == OBJECT_TEEN34 || type == OBJECT_POWER || type == OBJECT_ATOMIC || type == OBJECT_STONE || @@ -387,8 +387,8 @@ bool CTaskTerraform::Terraform() type == OBJECT_RUINradar ) // small/transportable objects? { dist = Math::Distance(m_terraPos, pObj->GetPosition()); - if ( dist > 20.0f ) continue; - + if ( dist > 5.0f ) continue; + if (type == OBJECT_BULLET || type == OBJECT_NEST ) {