[colobot] 327/390: Allow Tech to use build(), closes #461

Didier Raboud odyx at moszumanska.debian.org
Fri Jun 12 14:22:01 UTC 2015


This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch upstream/latest
in repository colobot.

commit 87ccb759e6ddb3b51d9622bc648cd1a498d6c278
Author: krzys-h <krzys_h at interia.pl>
Date:   Sat Apr 18 11:40:42 2015 +0200

    Allow Tech to use build(), closes #461
---
 src/script/scriptfunc.cpp | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/script/scriptfunc.cpp b/src/script/scriptfunc.cpp
index fbba71c..9d3b8bf 100644
--- a/src/script/scriptfunc.cpp
+++ b/src/script/scriptfunc.cpp
@@ -1489,12 +1489,14 @@ bool CScriptFunctions::rBuild(CBotVar* var, CBotVar* result, int& exception, voi
     
     oType = pThis->GetType();
     
-    if ( oType != OBJECT_MOBILEfa &&  // allowed only for grabber bots
+    if ( oType != OBJECT_MOBILEfa &&  // allowed only for grabber bots && humans
         oType != OBJECT_MOBILEta &&
         oType != OBJECT_MOBILEwa &&
-        oType != OBJECT_MOBILEia)
+        oType != OBJECT_MOBILEia &&
+        oType != OBJECT_HUMAN &&
+        oType != OBJECT_TECH)
     {
-        err = ERR_MANIP_VEH; //Wrong vehicle;
+        err = ERR_MANIP_VEH; // Wrong object
     }
     else
     {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git



More information about the Pkg-games-commits mailing list