From a037112f729087de6d0b402c269a5c6135183bcd Mon Sep 17 00:00:00 2001 From: Allanis Date: Sun, 17 Mar 2013 19:55:40 +0000 Subject: [PATCH] [Fix] Eheh. Typo affecting merchant ships going to hyperspace.. --- scripts/ai/merchant.lua | 2 +- src/pilot.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ai/merchant.lua b/scripts/ai/merchant.lua index 9a253d1..86d7ded 100644 --- a/scripts/ai/merchant.lua +++ b/scripts/ai/merchant.lua @@ -7,7 +7,7 @@ function control() if task == "hyperspace" then ai.hyperspace() -- Try to go to hyperspace. elseif task == "runaway" then - if ai.dist(is.pos(ai.targetid())) > 300 then + if ai.dist(ai.pos(ai.targetid())) > 300 then ai.hyperspace() end elseif task == "none" then diff --git a/src/pilot.c b/src/pilot.c index be70cf2..d169491 100644 --- a/src/pilot.c +++ b/src/pilot.c @@ -440,7 +440,7 @@ int pilot_addOutfit(Pilot* pilot, Outfit* outfit, int quantity) { q -= pilot->outfits[i].quantity - outfit->max; pilot->outfits[i].quantity = outfit->max; } - //pilot_calcStats(pilot); + pilot_calcStats(pilot); return q; }