summaryrefslogtreecommitdiff
path: root/aircraft_cmd.c
AgeCommit message (Collapse)Author
2006-09-27(svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound ↵peter1138
priority isn't supported.
2006-09-08(svn r6424) -Codechange: [autoreplace] removed a loop though all vehicles ↵bjarni
from each time the window is redrawn To do this, the player struct contains an array, that contains the count of each engine type that the player owns Those arrays are updated each time a vehicle is build or deleted and is calculated on load (it's not saved) It's possible to access the arrays outside of the autoreplace GUI, so feel free to read from them in other patches as well
2006-09-04(svn r6381) -Cleanup: make the '/* */' comments that span multiple lines ↵rubidium
more uniform. -Cleanup: whitespace alignment of a few tables.
2006-09-04(svn r6378) -Codechange: Rename VLW_FLAGS to VLW_MASK as it is a maskDarkvater
2006-09-04(svn r6376) -Codechange: [vehicle refit] moved all refit cost calculations ↵bjarni
into GetRefitCost() Now it's possible to tell refit costs for an EngineID without actually having build a vehicle
2006-09-03(svn r6356) -Fix: FS#263 planes come out of hangar and drive back into hangarbjarni
Now all vehicles are serviced when it's time for service and they are in a depot This will avoid the goto depot order from ever showing up when in a depot
2006-09-03(svn r6353) -Codechange: Make DestinationID a typedef of uin16, which is as ↵tron
large as any type of destinataion (StationID, DepotID, WaypointID) it can hold DestinationID being a union of these types is just hassle without benefit and cannot be handled correctly everywhere because of local lack of information
2006-09-02(svn r6352) -Fix: FS#322 Send to depot bugbjarni
now vehicles can't be sent to a depot when they are already inside a depot before they would remember the order and try to turn around when leaving the depot
2006-09-02(svn r6304) -Codechange r6295: Use !! instead of (bool) in commands to send ↵bjarni
vehicles to depots
2006-09-01(svn r6295) -Feature: using goto depot with a different control selection ↵bjarni
will now alter the service/stopping in depot flag instead of cancelling the goto depot order
2006-09-01(svn r6291) -Feature: Vehicle lists from the station window now also got the ↵bjarni
goto depot button -Codechange: unified the code for mass goto depot to avoid duplicated code -Fix: Vehicles already on the way to depots will not be cancelled by mass goto depot (made it really hard to send all vehicles at once)
2006-08-30(svn r6246) -Feature: added the many times requested "send all vehicle to ↵bjarni
depot" button it's located in the vehicle list screen and does the same as in the shared orders window (send all vehicles in list to a depot) it will still not inform the player if a vehicle failed to find a depot, so don't take for granted that all of them go
2006-08-29(svn r6229) -Feature: Shared order lists now got a "goto depot" buttonbjarni
this will try to send all vehicles in the list to depots/hangars currently if one fails to find a depot, it will not tell the player
2006-08-28(svn r6204) -Cleanup: replace non-indentation with spaces; like '}<TAB>else ↵rubidium
{' -> '} else {', tabs between code and comment, etc.
2006-08-27(svn r6165) -Feature: control click Goto Depot will now make the vehicle servicebjarni
at the depot and leave right away. To tell the difference the status of stopping vehicles will be in red, while servicing vehicles will be green. -Codechange: remove some dead code in CmdSendAircraftToHangar() since it is conflicting with new functionality. Now p2 means the same for all types
2006-08-26(svn r6142) -Codechange: added WaypointID (sorry DV, couldn't splits it anymore)truelight
-Codechange: introduced DestinationID, which is in fact an union of several types Used in Order struct, so no longer StationID is abused for all targets. Hangars are a big exception, as they use a station-id with GOTO_DEPOT (go figure)
2006-08-22(svn r6053) -Codechange: renamed all IsXXXIndex to IsValidXXXIDtruelight
-Codechange: IsValidXXXID now also checks if XXX is really valid, not if the number is within range Both changes again in preperation of the new mem-pool system, which requires this. IsValidXXXID is not a bit less pretty, but that will be cleaned up after the new mem-pool system
2006-08-22(svn r6052) -Codechange: change OrderType (order->type) in a typedeftruelight
-Codechange: renamed DeleteDestinationFromVehicleOrder to RemoveOrderFromAllVehicles to reflect his function better -Codechange: changed the params of RemoveOrderFromAllVehicles, to avoid unneeded variable-creation
2006-08-22(svn r6047) -Codechange: FOR_ALL now _only_ loops valid items, and skips ↵truelight
invalid ones -Codechange: use IsValidXXX where ever possible Note: both changes to prepare for new pool system, which needs those changes. For every pool there are 2 ugly lines, which will be removed when done implementing new pool system. Based on FS#13 by blathijs, partly implemented.
2006-08-22(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. ↵rubidium
whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
2006-08-21(svn r6039) -Fix: [newGRF] FS#287 Bugfix for error in NewGRF callback 31 ↵bjarni
code for aircraft (Mart3p) introduced in rev 5822
2006-08-20(svn r6002) -Cleanup: remove the now redundant BASE_YEAR constant.rubidium
2006-08-16(svn r5926) -Codechange: make _cur_year contain the full year, instead of ↵rubidium
the offset since 1920 -Codechange: store all year related variables that are _not_ stored in a savegame/transported over the network in the same format as _cur_year
2006-08-15(svn r5914) -Fix [FS#235]: Bugfix for errors in FindNearestHangar function ↵Darkvater
in aircraft_cmd.c (mart3p).
2006-08-14(svn r5887) -Cleanup: move date related functions, defines and variables to ↵rubidium
date.[ch] -Cleanup: fix whitespace related coding style issues in date.[ch] -Cleanup: make original comments doxygen compatible and remove/change outdated comments
2006-08-13(svn r5883) -Fix [FS#272]: use the height of the edge of the map for shadows ↵rubidium
of aircrafts that are outside the map; similar to r5841, caused by r5794.
2006-08-09(svn r5822) - NewGRF: add support for callback 31, vehicle start/stop check. ↵peter1138
This allows a set to disallow a vehicle from being started, i.e. to not be able to leave the depot. This is almost a partner to callback 1D.
2006-08-09(svn r5819) - NewGRF: add support for refit costs specified in NewGRF. This ↵peter1138
may affect the default refit costs for the default rail vehicles.
2006-07-26(svn r5613) Rename VS_DISASTER to VS_SHADOW, because this is what this flag ↵tron
actually means
2006-07-22(svn r5594) Be more strict what's allowed to be built in a hangar: if the ↵tron
airport can't handle planes/helicopters don't present and disallow building planes/helicopters - the latter case wasn't covered yet. Also remove an error message about building aircraft which can't be triggered by a normal client
2006-07-03(svn r5454) -Fix: [ 1394231 ] Autorenew glitch on helicoptersbjarni
[ 1459348 ] Helicopters (possibly other aircraft) stopping in depot... by committing FS#233 Bugfix for autorenewed/autoreplaced helicopters staying in depot (Mart3p) now helicopters (this only applied to helicopters) no longer stops in hangars when replaced and they will not even go there for autorenew if the model is out of date
2006-06-29(svn r5427) - Codechange: testing for "== true" is redundant.peter1138
2006-06-27(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectaculartron
2006-06-26(svn r5376) - Fix: Changed error message when trying to build a CTOL ↵richk
aircraft at a helidepot/helistation to "Airport has no runway". (Thanks to MeusH). Osprey can now be built at helidepot/helistation. (Thanks to mart3p).
2006-06-23(svn r5346) - Feature: Add 4 new airports. 2 for aircraft, 2 for helicopters.richk
Commuter airport: Small. 5x4. 3 terminals, 2 helipads. Intercontinental: massive. 9x11. 8 terminals, 2 helipads, 4 runways. Helidepot: a small heliport with a depot for helis only. Helistation: a large heliport with 3 helipads and a depot.
2006-06-22(svn r5336) - NewGRF: draw custom helicopter rotor sprites in vehicle info ↵peter1138
window, ensuring the correct direction is used (inspiration from mart3p)
2006-06-14(svn r5262) Add symbolic names for the aircraft subtypes. not perfect, but ↵tron
better than raw numbers
2006-06-09(svn r5187) - NewGRF: temporarily change a vehicle's cargo subtype when ↵peter1138
calling the refit capacity callback.
2006-06-09(svn r5186) - NewGRF: show default aircraft cargo type and the purchase list ↵peter1138
(mart3p)
2006-06-07(svn r5147) - NewGRF: Use refit capacity callback when refitting an aircraft ↵peter1138
(mart3p)
2006-06-07(svn r5146) - NewGRF: Support selection of aircraft default cargo type by ↵peter1138
checking its refit mask. If aircraft can be refitted to passengers, no change happens, else the first refittable type is chosen. Also use refit capacity to determine the default capacity.
2006-06-05(svn r5124) Add IsAircraftInHangar{Stopped,}(), which supersedes ↵tron
CheckStoppedInHangar() -Fix: Be more strict what it means for an aircraft to be in a hangar: It's not just being stopped on a hangar tile
2006-06-04(svn r5104) - When refitting a vehicle to its existing cargo type, don't ↵peter1138
lose the cargo onboard (useful when adding wagons to a train)
2006-06-04(svn r5103) - Add cargo subtype parameter to refit commands (mart3p)peter1138
2006-06-04(svn r5094) Remove _new_{aircraft,roadveh,ship,train,wagon}_id. ↵tron
_new_vehicle_id is enough.
2006-05-19(svn r4914) -Fix (FS#180) Aircraft can now serve as feederscelestar
2006-05-19(svn r4910) - NewGRF: add and initialize cargo subtype for vehicle visual ↵peter1138
variations
2006-05-11(svn r4826) -Fix: [autoreplace] fixed possible problem when autoreplacing ↵bjarni
and was number of vehicles (of a type, not total) was reached now the new vehicle gets the same number as the old one, completely removing the problem where we could run out of numbers since we don't have to find free numbers for the new vehicles, autoreplace should be somewhat faster, specially in late games NOTE: in CmdBuildRailVehicle(), bit 0 and 1 in p2 have been switched to make the meaning of bit 0 consistent with the other build commands. CmdCloneVehicle() is modified to follow this as well
2006-05-02(svn r4693) - NewGRF: invalidate aircraft in viewports during loading stages ↵peter1138
so that graphic changes are visible. (mart3p)
2006-05-01(svn r4653) - NewGRF: enable use of custom helicopter rotors in game (but ↵peter1138
not GUI windows yet) (mart3p)