From c4c65c02ac697b8ae6f3e9cd4b5e1f51cd4c1b5b Mon Sep 17 00:00:00 2001 From: Deiz Date: Fri, 14 Sep 2012 20:55:49 +0000 Subject: [PATCH] Need to explicitly return values to silence warnings. This was SVN commit r12675. --- binaries/data/mods/public/simulation/components/UnitAI.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/binaries/data/mods/public/simulation/components/UnitAI.js b/binaries/data/mods/public/simulation/components/UnitAI.js index 925ba1b10f..4b831598c9 100644 --- a/binaries/data/mods/public/simulation/components/UnitAI.js +++ b/binaries/data/mods/public/simulation/components/UnitAI.js @@ -1120,7 +1120,7 @@ var UnitFsmSpec = { { // Let the Timer logic handle this this.StartTimer(0); - return; + return false; } // No rate, give up on gathering @@ -1144,6 +1144,7 @@ var UnitFsmSpec = { var typename = "gather_" + this.order.data.type.specific; this.SelectAnimation(typename, false, 1.0, typename); } + return false; }, "leave": function() { @@ -1532,6 +1533,7 @@ var UnitFsmSpec = { this.SelectAnimation("build", false, 1.0, "build"); this.StartTimer(1000, 1000); + return false; }, "leave": function() { @@ -1662,7 +1664,7 @@ var UnitFsmSpec = { cmpResourceGatherer.CommitResources(dropsiteTypes); } - return; + return false; } } else @@ -1672,7 +1674,7 @@ var UnitFsmSpec = { if (this.MoveToTarget(target)) { this.SetNextState("APPROACHING"); - return; + return false; } } }