From af13707e0085ff0b273a1f1577c4e1855dedfbe1 Mon Sep 17 00:00:00 2001 From: smatz Date: Sat, 18 Jul 2009 19:54:35 +0000 Subject: (svn r16877) -Codechange: use Subsidy::IsAwarded() instead of testing subsidy's age --- src/ai/api/ai_subsidy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ai') diff --git a/src/ai/api/ai_subsidy.cpp b/src/ai/api/ai_subsidy.cpp index de7616367..6e43982c3 100644 --- a/src/ai/api/ai_subsidy.cpp +++ b/src/ai/api/ai_subsidy.cpp @@ -17,7 +17,7 @@ { if (!IsValidSubsidy(subsidy_id)) return false; - return Subsidy::Get(subsidy_id)->age >= 12; + return Subsidy::Get(subsidy_id)->IsAwarded(); } /* static */ AICompany::CompanyID AISubsidy::GetAwardedTo(SubsidyID subsidy_id) -- cgit v1.2.3-70-g09d2