[colobot] 237/377: Fixed NuclearPlant being available without research, closes #662

Didier Raboud odyx at moszumanska.debian.org
Wed Mar 30 13:34:21 UTC 2016


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

odyx pushed a commit to branch debian/master
in repository colobot.

commit 223d17843ed5e5055053ff495015cea08d05bbe6
Author: krzys-h <krzys_h at interia.pl>
Date:   Sun Jan 24 22:04:06 2016 +0100

    Fixed NuclearPlant being available without research, closes #662
---
 src/level/robotmain.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/level/robotmain.cpp b/src/level/robotmain.cpp
index 2bedfaf..53273b5 100644
--- a/src/level/robotmain.cpp
+++ b/src/level/robotmain.cpp
@@ -5795,8 +5795,8 @@ Error CRobotMain::CanBuildError(ObjectType type, int team)
 {
     if(!IsBuildingEnabled(type)) return ERR_BUILD_DISABLED;
 
-    if(type == OBJECT_TOWER  && !IsResearchDone(RESEARCH_TOWER,  team)) return ERR_BUILD_RESEARCH;
-    if(type == OBJECT_ATOMIC && !IsResearchDone(RESEARCH_ATOMIC, team)) return ERR_BUILD_RESEARCH;
+    if(type == OBJECT_TOWER   && !IsResearchDone(RESEARCH_TOWER,  team)) return ERR_BUILD_RESEARCH;
+    if(type == OBJECT_NUCLEAR && !IsResearchDone(RESEARCH_ATOMIC, team)) return ERR_BUILD_RESEARCH;
 
     return ERR_OK;
 }

-- 
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