Closed mnalis closed 4 years ago
it seems wrong:
procedure movewandering;
begin
case action of
WNDACT_NONE:;
WNDACT_RETREAT: adjustwanderer(round(-(ship.accelmax div 4)*(100-ship.damages[DMG_ENGINES])/100));
WNDACT_ATTACK: adjustwanderer(round((ship.accelmax div 4)*(100-ship.damages[DMG_ENGINES])/100));
end;
case ship.wandering.orders of
WNDORDER_ATTACK: if action=WNDACT_MASKING then adjustwanderer(30) else adjustwanderer(2);
WNDORDER_RETREAT: if action=WNDACT_MASKING then adjustwanderer(-50) else adjustwanderer(-70);
WNDORDER_NONE: adjustwanderer(-30);
end;
end;
negative values to adjustwanderer()
should be increasing distance, and positive values decreasing distance.
Here if masking is enabled, they find us much faster which is wrong
According to manual: