summaryrefslogtreecommitdiff
path: root/src/aircraft_cmd.cpp
AgeCommit message (Collapse)Author
2007-05-14(svn r9833) -Fix: also 'leave' the station when leaving for automatic servicing.rubidium
2007-05-07(svn r9808) -Codechange: unify the Handle<VehicleType>Loading functions.rubidium
2007-05-07(svn r9806) -Codechange: [NewGRF] Add callback 36 support for purchase cost, ↵peter1138
for all vehicle types.
2007-05-06(svn r9804) -Fix (r9761): Update aircraft cached information when its 'pos' ↵peter1138
changes, as well as 'state'. (Thanks to bulb)
2007-05-06(svn r9794) -Codechange: refactor the question whether a vehicle can be ↵rubidium
loaded into LoadUnloadVehicle instead of duplicating it for each vehicle.
2007-05-02(svn r9770) -Codechange: perform the payment of cargo when ↵rubidium
loading/unloading, but when arriving at the station.
2007-05-01(svn r9760) -Codechange: remove the need for saving some vehicle variables.rubidium
2007-04-29(svn r9755) -Codechange: refactor some more of the begin loading stuff.rubidium
2007-04-29(svn r9754) -Codechange: make classes for all vehicle types, so we can make ↵rubidium
nicer/better maintainable code, i.e. virtual methods instead of switches.
2007-04-29(svn r9752) -Codechange: remove some duplication related to BeginLoading.rubidium
2007-04-29(svn r9742) -Fix (r9689) [FS#739]: Fix cloning with refit costs again, ↵maedhros
hopefully for good this time.
2007-04-20(svn r9685) -Fix (r9683): Call v->LeaveStation() when a vehicle in a station ↵maedhros
is sent to a depot.
2007-04-20(svn r9684) -Fix (r9683): Remove vehicles from the station loading list ↵maedhros
instead of adding them again when they leave, and add a v->LeaveStation() call for aircraft.
2007-04-19(svn r9678) -Codechange: Support changing of aircraft running cost via ↵peter1138
callback 36.
2007-04-18(svn r9671) -Codechange: Implement NewGRF callback 36, which allows changing ↵peter1138
of various properties which were previously static. Vehicle max speed and train power/te/running costs are adjustable.
2007-04-12(svn r9609) -Codechange: Move some function prototypes out of functions.h ↵maedhros
and into landscape.h, and add a few where they didn't exist.
2007-04-03(svn r9551) -Documentation: Some more doxygen workbelugas
2007-04-02(svn r9545) -Documentation: Some corrections to previous doxygen workbelugas
2007-04-02(svn r9543) -Fix [FS#691]: Split up STR_ENGINE_NOT_BUILDABLE into four ↵maedhros
strings so it can be translated properly and remove "buildable", since it isn't actually a word.
2007-03-29(svn r9524) -Fix(FS#640,r8755): Implemented a "dummy" State Machine for ↵celestar
stations who got their airport removed while there were still aircraft within the State Machine (and thus caused asserts)
2007-03-21(svn r9388) -Codechange: variable scope and type, and standardify all ↵peter1138
CargoID loops.
2007-03-19(svn r9352) -Codechange: Use cargo class to determine if an aircraft should ↵peter1138
carry mail
2007-03-19(svn r9322) -Codechange: Use cargo class to count crash/flood victimspeter1138
2007-03-18(svn r9299) -Fix (FS#675,FS#660): Small micro-movements on airports (of <4 ↵richk
pixels) caused odd aircraft movements. On oilrigs, this caused a full crash as movement would take helicopter out of airport/station tile. Corrected by maneuvering aircraft directly over these tiny movements, rather than relying on movement by changing facing.
2007-03-16(svn r9259) -Codechange: NUM_CARGO isn't a valid cargo type...peter1138
2007-03-08(svn r9072) -Codechange: [Orders] added methods to orders to free them and ↵bjarni
check if they are in use
2007-03-08(svn r9068) -Codechange: capitalize the VEH_Train etc. enums to match the ↵rubidium
coding style (and rest of the code).
2007-03-07(svn r9050) -Codechange: Foo(void) -> Foo()rubidium
2007-03-06(svn r9040) -Codechange: the build window and CmdBuildAircraft() now shares ↵bjarni
the code to figure out if an aircraft is buildable in the hangar in question This should help ensuring that the build command and the list are consistent in what aircraft are buildable
2007-03-02(svn r8973) -Feature/Codechange: Changed the internal unit for aircraft ↵celestar
velocities to from 8mph to 1km/h (peter1138), also give aircraft realsitic velocities (so that 1km/h is 1km/h independent of vehicle type) (peter1138). Introduce a flag to reduce aircraft speed in holding patterns to some realistic velocity. Use this flag for the city airport for the time being and make use of the different entry points for this airport type.
2007-02-28(svn r8946) -Feature: [NewGRF] Add support for vehicle variables 0xFE and ↵maedhros
0xFF bit 10, which is set when a vehicle was built during the exclusive testing phase.
2007-02-28(svn r8945) -Codechange: Rename v->load_status to v->vehicle_flags so it can ↵maedhros
be used for more than just the gradual loading status.
2007-02-27(svn r8921) -Fix (FS#654): several issues related to removing all orders ↵rubidium
from an aircraft and removing the airport it was heading: - the aircraft would go to (0, 0) and circle there. Clicking the 'eye' to jump to the aircraft in the main window could cause a segmentation fault. - when rebuilding an airport with the StationID of the old airport could crash as the FTA state of the aircraft is higher than the number of states of the new airport, causing a crash of all clients and the server when assertions are enabled. - when rebuilding an airport with the StationID of the old airport can bring the aircraft in a state where is keeps circling the airport. To solve these issues all aircraft without a valid order will try to go to the nearest hangar it can safely get to (large jets do not land on small airports). If there is no hangar to go to, the airplane crashes (out of fuel).
2007-02-25(svn r8897) -Fixtron
Change the signature of GetNewVehiclePos(): -void GetNewVehiclePos(const Vehicle *v, GetNewVehiclePosResult *gp); +GetNewVehiclePosResult GetNewVehiclePos(const Vehicle *v);
2007-02-23(svn r8859) -Cleanup: doxygen changes. Mostly @files missing tags and a few ↵belugas
comments style.
2007-02-23(svn r8853) -Cleanup: doxygen changes. Correct forgotten c files to cpp ↵belugas
files with the @file tag as well as a few general comments style
2007-02-21(svn r8835) -Fixtron
Remove dead code
2007-02-21(svn r8834) -Fixtron
Do not pass something to a function it better could figure out by itself
2007-02-20(svn r8822) -Fixtron
Variable scope, const
2007-02-16(svn r8763) -Fixtron
Don't do bogus initialisations and prefer simpler code
2007-02-16(svn r8759) -Feature: Allow airports to have up to 4 entry points depending ↵celestar
on approach direction. Note: they're not yet used, but will be soon
2007-02-16(svn r8755) -Fixtron
Abbreviate GetAirport(st->airport_type) to st->Airport()
2007-02-15(svn r8750) -Fix (r8747): PLANES defined in wingdi.h caused compilation ↵KUDr
error under Win32. Changed to AIRPLANES
2007-02-15(svn r8748) -Fixtron
-Codechange: Do not hardcode the airports with a short airstrip anymore, but make it a flag in AirportFTAClass
2007-02-15(svn r8747) -Fixtron
-Codechange: Make the encoding of accepted aircraft types of airports a bit more sensible and move the enum into struct AirportFTAClass
2007-02-15(svn r8743) -Fixtron
-Codechange: Add a Z adjustment attribute for helicopter pads to AirportFTAClass to get rid of some special cases for oilrigs and heliports
2007-02-14(svn r8733) -Fix(r8705): Forgot to change some more places where airport ↵celestar
blocks are stored
2007-02-13(svn r8707) -Codechange: Turn IsValidStation into a method of Stationcelestar
2007-02-10(svn r8661) -Fix: [depot windows] Enlarge the blocks in the depot window if ↵bjarni
a sprite is too big to fit (ships and aircraft only) -Codechange: depot windows default now makes a 1x1 matrix and resize the window by block size*number of blocks This will make less vehicle type specific code and easier to read resizing based on sprite sizes
2007-02-07(svn r8618) -Fixtron
Remove redundant assignments. The function call just before already does it