changes to Pirates.lua and added :P
and I got floating point exceptions.
Code: Select all
local onShipFuelChanged = function (ship, fuelStatus) -- if ship:IsPlayer() then return end print(ship.label..' fuel status changed to '..fuelStatus) ship:SetFuelPercent(100) end
Then fired gdb and found out that program gets exception in
function Ship::GetSpeedReachedWithFuel() because of negative log argument.
Problem i that SetFuel does not calls UpdateFuelStats() and that is problem
So I just mad call inside SetFuel and everything is fine ;)
Made pirates spawn closer relative to ship and make some police
spawn to chase pirates.
Game is fun1!