From 68566c34e2afa1800ffae3b88057d473b57e5f85 Mon Sep 17 00:00:00 2001 From: Dave White Date: Fri, 14 Nov 2003 20:07:16 +0000 Subject: [PATCH] removed rule about level 0 units not being able to capture villages, ... ...until the AI is smart enough to deal with it --- src/unit.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/unit.cpp b/src/unit.cpp index 2b718a6fded..61c7066d079 100644 --- a/src/unit.cpp +++ b/src/unit.cpp @@ -461,8 +461,10 @@ const std::vector& unit::attacks() const int unit::movement_cost(const gamemap& map, gamemap::TERRAIN terrain) const { - if(type_->level() == 0 && terrain == gamemap::TOWER) - return 100; +//don't allow level 0 units to take villages - removed until AI +//is smart enough to deal with this. +// if(type_->level() == 0 && terrain == gamemap::TOWER) +// return 100; const int res = type_->movement_type().movement_cost(map,terrain);