[Fix] Eheh. Typo affecting merchant ships going to hyperspace..

This commit is contained in:
Allanis 2013-03-17 19:55:40 +00:00
parent b66c6f7ecf
commit a037112f72
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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;
}