From cc1f14a4b4cea694bb87a7f2bc582d9613422a3a Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 28 Oct 2013 11:09:02 +0000 Subject: [PATCH] (svn r25924) -Fix: [Script] Documentation for ScriptTown::GetGrowthRate. --- src/script/api/script_town.cpp | 2 +- src/script/api/script_town.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/script/api/script_town.cpp b/src/script/api/script_town.cpp index 3b9a4b7b6b..c098039fdc 100644 --- a/src/script/api/script_town.cpp +++ b/src/script/api/script_town.cpp @@ -166,7 +166,7 @@ /* static */ int32 ScriptTown::GetGrowthRate(TownID town_id) { - if (!IsValidTown(town_id)) return false; + if (!IsValidTown(town_id)) return -1; const Town *t = ::Town::Get(town_id); diff --git a/src/script/api/script_town.hpp b/src/script/api/script_town.hpp index d301cbe563..df02f18ac6 100644 --- a/src/script/api/script_town.hpp +++ b/src/script/api/script_town.hpp @@ -262,7 +262,7 @@ public: * Get the amount of days between town growth. * @param town_id The index of the town. * @pre IsValidTown(town_id). - * @return True if the action succeeded. + * @return Amount of days between town growth. * @note This function does not indicate when it will grow next. It only tells you the time between growths. */ static int32 GetGrowthRate(TownID town_id);