rubidium
b6b9cd9d51
(svn r14089) -Fix [FS#2219]: trains not being able to find a route to a depot when the front is already in the depot.
16 years ago
frosch
9751fbe4dc
(svn r14085) -Cleanup (r14083): Remove no longer used functions.
16 years ago
frosch
f7826f8a37
(svn r14083) -Fix [FS#1264, FS#2037, FS#2038, FS#2110]: Rewrite the autoreplace kernel.
16 years ago
frosch
844a83ed58
(svn r14076) -Codechange: Merge the four start/stop commands into a single CMD_START_STOP_VEHICLE.
16 years ago
rubidium
2d94337e1a
(svn r14064) -Fix [FS#1752]: check for the length of strings (in bytes) in the command. Checking for the length in pixels is impossible because that differs per client.
16 years ago
rubidium
8726c2fd99
(svn r14039) -Fix [FS#2217]: reversing an overlength train at a station would try to find a route out and sometimes reset the unload counter making it wait 2.5 years before departing instead of waiting until the train would actually leave the station (michi_cc)
16 years ago
rubidium
e9c33fb288
(svn r13950) -Add [YAPP]: Trains can now also be in a 'stuck' state when waiting on a path reservation. (michi_cc)
16 years ago
rubidium
ad36ea6b29
(svn r13912) -Codechange: remove some casts by returning the proper type instead of void*.
16 years ago
smatz
aae2aa64c4
(svn r13816) -Fix [FS#2150]: check for vehicle length changes outside a depot (callback 0x11) and give a warning about that
16 years ago
rubidium
d06529ef4d
(svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool.
16 years ago
rubidium
d974acac89
(svn r13681) -Revert (r13678, r13677): the fixes didn't work in all cases (assertions on savegame loads).
...
-Fix [FS#2102]: but now in a hopefully beter way.
16 years ago
rubidium
03d32e12fb
(svn r13680) -Fix: NPF crashing when a ship tried to find a nearby depot when on an aqueduct.
16 years ago
rubidium
3a793ceea9
(svn r13678) -Fix (r13677): electric trains from pre elrail savegames would get stopped on load.
16 years ago
smatz
58d63ec726
(svn r13475) -Fix (r13464): crash on destroying aquaduct with ship on in and on company bankrupt
17 years ago
rubidium
2f3b88ef9a
(svn r13343) -Codechange: reorder/move variable/functions in the network headers so that nothing from the network directory needs to include basically all network headers.
17 years ago
rubidium
923e21129c
(svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games.
17 years ago
peter1138
f9fc53f98a
(svn r13307) -Codechange: Separate VehicleList and its two functions so only the 3 users include it, reducing dependencies on misc/smallvec.h
17 years ago
peter1138
02b5ffa13f
(svn r13266) -Codechange: Use SmallVector in GUIList
17 years ago
rubidium
8c9cc415e3
(svn r13255) -Codechange: move _opt to _settings.
17 years ago
rubidium
4625695653
(svn r13251) -Codechange: rename _patches to _settings as that is more logic.
...
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
17 years ago
peter1138
6ea832ec7c
(svn r13250) -Codechange: Use VehicleList in SendAllVehiclesToDepot()
17 years ago
peter1138
56f78e6412
(svn r13248) -Codechange: Use VehicleList for depot GUI.
17 years ago
peter1138
cfc8ed1f5b
(svn r13246) -Fix (r13245): incorrect parameters to memcpy
17 years ago
peter1138
da8bb14cec
(svn r13245) -Codechange: Use SmallVectors for generating vehicle lists, simplifying calling code somewhat.
17 years ago
peter1138
f6ea07e7d8
(svn r13241) -Codechange: Simplify CmdDepotSellAllVehicles() a bit
17 years ago
peter1138
d9805b46b9
(svn r13240) -Codechange: More const-ness for GUI code.
17 years ago
peter1138
c34b458ace
(svn r13232) -Codechange: Simplify BuildDepotVehicleList()
17 years ago
rubidium
9defec7876
(svn r13165) -Codechange: replace some RebuildXXXList/ResortXXXList+InvalidateWindowXXX with InvalidateWindowXXXData.
17 years ago
rubidium
9717e1ef07
(svn r13146) -Codechange: vehicle_base.h doesn't need to be included in vehicle_gui.h.
17 years ago
rubidium
87015f5b63
(svn r13140) -Codechange: move the gui-list-sorting out of window_gui.h so window_gui.h only needs to be included in *_gui.cpp.
17 years ago
bjarni
5469686001
(svn r13125) -Fix [FS#2000](r12913): [autoreplace] failing replacement and restoring a vehicle will no longer decrease the vehicle count in groups
17 years ago
rubidium
76b8970a33
(svn r13100) -Codechange: reduce the amount of parameters passed via AddNewsMessage as there is (for each news message type) a tuple of 4 parameters that is the same for all calls.
17 years ago
smatz
ec627dedf8
(svn r13090) -Codechange: add functions for direct conversion from DiagDirection to Track and Trackbits
17 years ago
peter1138
6bfd695002
(svn r13087) -Codechange: Constify CalcPercentVehicleFilled() (michi_cc)
17 years ago
glx
c708ab3b48
(svn r13047) -Codechange: remove vp_d
17 years ago
glx
e48a351f8e
(svn r13008) -Fix [FS#1997]: silence some MSVC x64 warnings
17 years ago
bjarni
0cfd2baa3c
(svn r12988) -Fix [FS#1992](r12913): [autoreplace] failing to replace a road vehicle could free it's slot without the vehicle knowing it (leading to assert)
17 years ago
rubidium
d03994098b
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
17 years ago
bjarni
dbf6e344a4
(svn r12940) -Fix [FS#1974](r12913): [autoreplace] a vehicle backup should include the cargo packets in the vehicle as well
17 years ago
peter1138
a00371c8db
(svn r12924) -Feature: Introducing the so called 'engine pool' which primarily removes the fixed engine type limits and also happens to allow (with the patch option 'dynamic_engines') multiple NewGRF vehicle sets to coexist.
17 years ago
peter1138
5ca6fd67fc
(svn r12917) -Codechange: standardise variable names called with FOR_ALL_ENGINEIDS_OF_TYPE
17 years ago
bjarni
757de2bdf5
(svn r12913) -Add: ability to backup and restore a player's economic data and data for a vehicle (or chain of vehicles)
...
Autoreplace uses this with the following benefits:
-Mass autoreplace (the button in the depot window) will now estimate costs correctly
-Autoreplace now either replaces correctly or manages to keep the original vehicle (no more broken trains)
Thanks to Ammler for testing this
17 years ago
smatz
805e1db332
(svn r12904) -Fix [FS#1953]: remove trams from savegames saved in OTTD without tram support, it is better than to simply crash
17 years ago
smatz
9fc355fca5
(svn r12862) -Codechange: reduce code duplication for VehicleType -> WindowClass lookup
17 years ago
peter1138
60eb3c034f
(svn r12860) -Fix [FS#1947]: Train depart animation trigger was not called in some cases.
17 years ago
rubidium
b139756e2b
(svn r12804) -Codechange: move the effect vehicle handling out of vehicle.cpp
17 years ago
rubidium
f55ffd14bd
(svn r12803) -Cleanup: rename SpecialVehicle to EffectVehicle to have a uniform naming of the thing instead of using both names for the same thing.
17 years ago
rubidium
15680e477a
(svn r12800) -Codechange: move the animated tile related functions out of texteff.cpp (it isn't a text effect after all). Also remove a few more functions from functions.
17 years ago
bjarni
01549e1574
(svn r12792) -Codechange: [autoreplace] added a function to figure out if a replacement is needed and if so, to which EngineID
...
It's designed to save a bit of CPU time, specially if the replacement isn't buildable (think autorenew of old vehicle)
17 years ago
bjarni
ad3ef0fb26
(svn r12791) -Codechange: [autoreplace] Added a flag parameter (listens for DC_EXEC and DC_QUERY_COST) and included more info when returning CommandCost
...
This allowed cleaning up the code in MaybeReplaceVehicle()
17 years ago