[Fix] Eheh. Typo affecting merchant ships going to hyperspace..
This commit is contained in:
parent
b66c6f7ecf
commit
a037112f72
@ -7,7 +7,7 @@ function control()
|
|||||||
if task == "hyperspace" then
|
if task == "hyperspace" then
|
||||||
ai.hyperspace() -- Try to go to hyperspace.
|
ai.hyperspace() -- Try to go to hyperspace.
|
||||||
elseif task == "runaway" then
|
elseif task == "runaway" then
|
||||||
if ai.dist(is.pos(ai.targetid())) > 300 then
|
if ai.dist(ai.pos(ai.targetid())) > 300 then
|
||||||
ai.hyperspace()
|
ai.hyperspace()
|
||||||
end
|
end
|
||||||
elseif task == "none" then
|
elseif task == "none" then
|
||||||
|
@ -440,7 +440,7 @@ int pilot_addOutfit(Pilot* pilot, Outfit* outfit, int quantity) {
|
|||||||
q -= pilot->outfits[i].quantity - outfit->max;
|
q -= pilot->outfits[i].quantity - outfit->max;
|
||||||
pilot->outfits[i].quantity = outfit->max;
|
pilot->outfits[i].quantity = outfit->max;
|
||||||
}
|
}
|
||||||
//pilot_calcStats(pilot);
|
pilot_calcStats(pilot);
|
||||||
return q;
|
return q;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user