michi_cc
f200ffa90c
(svn r23087) -Feature: Auto-refitting of vehicles during loading at a station when the vehicle allows it.
13 years ago
frosch
37301ea23d
(svn r22985) -Feature: Display autoreplace status in group GUI.
13 years ago
frosch
d071eefc54
(svn r22985) -Feature: Display autoreplace status in group GUI.
13 years ago
frosch
d864aa2ce3
(svn r22876) -Fix [FS#4712]: Report an error in the news if autoreplace/renew fails due to the engine type being no longer available.
13 years ago
frosch
b2bc7797bf
(svn r22876) -Fix [FS#4712]: Report an error in the news if autoreplace/renew fails due to the engine type being no longer available.
13 years ago
rubidium
8c335b8db6
(svn r22845) -Fix [FS#4745]: perform stricter checks on some commands (monoid)
13 years ago
rubidium
4836a6e50e
(svn r22845) -Fix [FS#4745]: perform stricter checks on some commands (monoid)
13 years ago
rubidium
d327169700
(svn r22078) -Fix [FS#4499]: maximum train length interfered with wagon replacement when wagon removal was turned on
14 years ago
rubidium
95b6aeaabd
(svn r22078) -Fix [FS#4499]: maximum train length interfered with wagon replacement when wagon removal was turned on
14 years ago
rubidium
8183922813
(svn r22021) -Fix (r22019): ofcourse make doesn't notice files are gone, so it doesn't recompile everything that needs to be recompiled...
14 years ago
rubidium
1d0d7635e0
(svn r22021) -Fix (r22019): ofcourse make doesn't notice files are gone, so it doesn't recompile everything that needs to be recompiled...
14 years ago
terkhen
0e51dab6a6
(svn r21924) -Codechange: Unify some parts of the articulated vehicle code.
...
-Cleanup: Avoid conversions to Train and RoadVehicle that are no longer required.
14 years ago
terkhen
734994c9ba
(svn r21924) -Codechange: Unify some parts of the articulated vehicle code.
...
-Cleanup: Avoid conversions to Train and RoadVehicle that are no longer required.
14 years ago
rubidium
02f3de6d1f
(svn r21910) -Codechange: rename some autoreplace internal functions so they don't collide with globabl functions
14 years ago
rubidium
12b64a12b0
(svn r21910) -Codechange: rename some autoreplace internal functions so they don't collide with globabl functions
14 years ago
terkhen
f69d280f14
(svn r21521) -Codechange: Unify some cached values that were present in both road vehicles and trains.
14 years ago
terkhen
48b7916458
(svn r21521) -Codechange: Unify some cached values that were present in both road vehicles and trains.
14 years ago
alberth
063931d435
(svn r21060) -Doc: Improved wording of comments (mostly by __ln__)
14 years ago
alberth
7e48d85104
(svn r21060) -Doc: Improved wording of comments (mostly by __ln__)
14 years ago
rubidium
360d6daf34
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
14 years ago
rubidium
30f2afac9b
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
14 years ago
frosch
19cfa8fe57
(svn r20583) -Fix: Autoreplace failed while attaching non-replaced wagons to the new chain, if to-be-sold-engines would become front-engines and the unitnumber limit would be exceeded.
14 years ago
frosch
514edcc19d
(svn r20583) -Fix: Autoreplace failed while attaching non-replaced wagons to the new chain, if to-be-sold-engines would become front-engines and the unitnumber limit would be exceeded.
14 years ago
rubidium
b07f2beb67
(svn r20572) -Codechange: free/reserve some bits in the wagon move command to increase the vehicle pool limit
14 years ago
rubidium
646fbb628a
(svn r20572) -Codechange: free/reserve some bits in the wagon move command to increase the vehicle pool limit
14 years ago
rubidium
0d018b5840
(svn r20571) -Codechange: free/reserve some bits in the order commands to increase the vehicle pool limit
14 years ago
rubidium
e89a0fb7f9
(svn r20571) -Codechange: free/reserve some bits in the order commands to increase the vehicle pool limit
14 years ago
frosch
5b86c79fce
(svn r20283) -Codechange: Unify start of doygen comments.
14 years ago
frosch
ed4f806f1d
(svn r20283) -Codechange: Unify start of doygen comments.
14 years ago
alberth
2600624395
(svn r20277) -Codechange: Move CmdSetAutoReplace() from company_cmd.cpp to autoreplace_cmd.cpp.
14 years ago
alberth
9f8d730cc4
(svn r20277) -Codechange: Move CmdSetAutoReplace() from company_cmd.cpp to autoreplace_cmd.cpp.
14 years ago
frosch
a4413f4cf6
(svn r19670) -Codechange: Add CeilDiv() and RoundDiv() to simplify integer divisions with rounding.
15 years ago
frosch
2e90f7f8b9
(svn r19670) -Codechange: Add CeilDiv() and RoundDiv() to simplify integer divisions with rounding.
15 years ago
alberth
72d62fd6fc
(svn r19494) -Codechange: Remove _error_message.
15 years ago
alberth
05d705e077
(svn r19494) -Codechange: Remove _error_message.
15 years ago
alberth
1aef93517f
(svn r19417) -Codechange: More code style, move variable declarations to their first use.
15 years ago
alberth
7d9a970c5c
(svn r19417) -Codechange: More code style, move variable declarations to their first use.
15 years ago
alberth
d5fe3f96c7
(svn r19405) -Codechange: CheckOwnership() returns a CommandCost.
15 years ago
alberth
7cc68f493d
(svn r19405) -Codechange: CheckOwnership() returns a CommandCost.
15 years ago
frosch
ea8a44f5cd
(svn r18931) -Fix: Disabling autoreplace rules might count invalid engines.
15 years ago
frosch
a3168269f9
(svn r18931) -Fix: Disabling autoreplace rules might count invalid engines.
15 years ago
rubidium
ea240269dc
(svn r18812) -Codechange: make some functions in train.h functions of Train.
15 years ago
rubidium
aaf0b4b46c
(svn r18812) -Codechange: make some functions in train.h functions of Train.
15 years ago
rubidium
9467b7c6d6
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
15 years ago
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
15 years ago
frosch
bc19dd6a25
(svn r18566) -Codechange: When both the union and intersection of refit masks of articulated vehicles are needed, they can be determined at once.
15 years ago
frosch
1e1fa9ff2e
(svn r18566) -Codechange: When both the union and intersection of refit masks of articulated vehicles are needed, they can be determined at once.
15 years ago
rubidium
e8ed3b3389
(svn r18499) -Fix/Change/Feature [FS#3159]: autoreplace and autorenew always reset their cargo sub type to 0. Now find a sub cargo type with the exact same name and use that, otherwise fallback to 0. So cargo sub types can be maintained via autoreplace *if* the new vehicle supports the same cargo sub type.
15 years ago
rubidium
4250792389
(svn r18499) -Fix/Change/Feature [FS#3159]: autoreplace and autorenew always reset their cargo sub type to 0. Now find a sub cargo type with the exact same name and use that, otherwise fallback to 0. So cargo sub types can be maintained via autoreplace *if* the new vehicle supports the same cargo sub type.
15 years ago
rubidium
e553983e39
(svn r17800) -Codechange: first steps into making CargoList a template
15 years ago
rubidium
138e7233bc
(svn r17800) -Codechange: first steps into making CargoList a template
15 years ago
frosch
241415e76a
(svn r17728) -Cleanup: Remove some more unneeded/unused parameters.
15 years ago
frosch
9a9d0ee7c0
(svn r17728) -Cleanup: Remove some more unneeded/unused parameters.
15 years ago
frosch
4cb5a3e8a2
(svn r17725) -Codechange: Reduce usage of EngInfo and XxxVehInfo, esp. when a Engine * is already present.
15 years ago
frosch
f3aacb8fe3
(svn r17725) -Codechange: Reduce usage of EngInfo and XxxVehInfo, esp. when a Engine * is already present.
15 years ago
rubidium
982b8ee5fc
(svn r17693) -Cleanup: remove some unneeded includes
15 years ago
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
15 years ago
rubidium
310465da07
(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos
15 years ago
rubidium
e8ddf001c8
(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos
15 years ago
rubidium
06e490fadc
(svn r17567) -Fix: some doxygen warnings
15 years ago
rubidium
04d5b67eb6
(svn r17567) -Fix: some doxygen warnings
15 years ago
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
frosch
e44a69b92f
(svn r17147) -Fix [FS#3048]: Keep vehicle news and viewports following vehicles, when autoreplacing/renewing them.
15 years ago
frosch
52f9b8ffbd
(svn r17147) -Fix [FS#3048]: Keep vehicle news and viewports following vehicles, when autoreplacing/renewing them.
15 years ago
rubidium
5bb7b8ad35
(svn r17062) -Change: unify the naming of some 125 strings
15 years ago
rubidium
4b2592dbc0
(svn r17062) -Change: unify the naming of some 125 strings
15 years ago
smatz
32bf91aa41
(svn r16723) -Codechange: make GetNextArticPart(), GetLastEnginePart(), GetNextVehicle(), GetPrevVehicle(), GetNextUnit(), GetPrevUnit() members of Train
15 years ago
smatz
6a0855f0d1
(svn r16723) -Codechange: make GetNextArticPart(), GetLastEnginePart(), GetNextVehicle(), GetPrevVehicle(), GetNextUnit(), GetPrevUnit() members of Train
15 years ago
smatz
1e1f0ab2cf
(svn r16719) -Codechange: make IsArticulatedPart(), IsTrainEngine(), IsTrainWagon(), IsMultiheaded(), EngineHasArticPart() and IsRearDualheaded() members of Train
15 years ago
smatz
d86e17d65a
(svn r16719) -Codechange: make IsArticulatedPart(), IsTrainEngine(), IsTrainWagon(), IsMultiheaded(), EngineHasArticPart() and IsRearDualheaded() members of Train
15 years ago
smatz
20fedeb3d6
(svn r16717) -Codechange: make IsFrontEngine() member of Train
15 years ago
smatz
adc5363202
(svn r16717) -Codechange: make IsFrontEngine() member of Train
15 years ago
rubidium
4f99508114
(svn r16694) -Fix [FS#2995] (rgradual loading, rnewindustries): only pay for whatever has been actually unloaded and perform the payment when unloading has finished. This fixes, amongst others:
...
* cheating by starting to unload and after getting paid rushing to the depot to get sold (or unloading, loading and getting paid again for the remainder)
* cargo being dropped onto a station at the moment a stockpiling industry doesn't accept it anymore
* industries getting cargo that has not been unloaded yet and subsequently dumping it back on the station in one go
Note: you will now get paid after the unloading has finished, so you'll have to wait a bit longer for 'your' money.
15 years ago
rubidium
985608c713
(svn r16694) -Fix [FS#2995] (rgradual loading, rnewindustries): only pay for whatever has been actually unloaded and perform the payment when unloading has finished. This fixes, amongst others:
...
* cheating by starting to unload and after getting paid rushing to the depot to get sold (or unloading, loading and getting paid again for the remainder)
* cargo being dropped onto a station at the moment a stockpiling industry doesn't accept it anymore
* industries getting cargo that has not been unloaded yet and subsequently dumping it back on the station in one go
Note: you will now get paid after the unloading has finished, so you'll have to wait a bit longer for 'your' money.
15 years ago
frosch
ce55eda3e1
(svn r16679) -Codechange: Let GetCapacityOfArticulatedParts() return a CargoArray instead of a pointer to a static array.
15 years ago
frosch
1e09854cb7
(svn r16679) -Codechange: Let GetCapacityOfArticulatedParts() return a CargoArray instead of a pointer to a static array.
15 years ago
smatz
af85994f7f
(svn r16527) -Codechange: use static member functions instead of simple casts when converting Vehicle to specialised vehicle types. Includes safety check
16 years ago
smatz
0c10006907
(svn r16527) -Codechange: use static member functions instead of simple casts when converting Vehicle to specialised vehicle types. Includes safety check
16 years ago
frosch
c9eac207ea
(svn r16498) -Codechange: Remove hardly used HASBITS.
16 years ago
frosch
0d782b0f96
(svn r16498) -Codechange: Remove hardly used HASBITS.
16 years ago
rubidium
4c0542c17f
(svn r16393) -Codechange: move VehicleRail to Train.
16 years ago
rubidium
da5661a0c8
(svn r16393) -Codechange: move VehicleRail to Train.
16 years ago
rubidium
6350648a6c
(svn r16392) -Codechange: move some variables (the ones that aren't caches) from VehicleRail to Train
16 years ago
rubidium
c4b627af42
(svn r16392) -Codechange: move some variables (the ones that aren't caches) from VehicleRail to Train
16 years ago
rubidium
1324100d69
(svn r16391) -Codechange: use Train instead of Vehicle where appropriate.
16 years ago
rubidium
80e94b9bb1
(svn r16391) -Codechange: use Train instead of Vehicle where appropriate.
16 years ago
smatz
6636ed7589
(svn r16354) -Codechange: use 'new' pool accessors and methods for Engine too
16 years ago
smatz
70aab8bf04
(svn r16354) -Codechange: use 'new' pool accessors and methods for Engine too
16 years ago
smatz
512db5248e
(svn r16352) -Codechange: use PoolItem::GetIfValid() instead of PoolItem::IsValidID() and PoolItem::Get()
16 years ago
smatz
8808f3beea
(svn r16352) -Codechange: use PoolItem::GetIfValid() instead of PoolItem::IsValidID() and PoolItem::Get()
16 years ago
smatz
0c10daa243
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
16 years ago
smatz
871107f529
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
16 years ago
smatz
d495dc5dbc
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
16 years ago
smatz
6221d74644
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
16 years ago
yexo
d489f93473
(svn r16315) -Codechange: move the autorenew settings to a new CompanySettings struct
16 years ago
yexo
31eff1d4c3
(svn r16315) -Codechange: move the autorenew settings to a new CompanySettings struct
16 years ago
frosch
65b47ddc52
(svn r15692) -Fix [FS#2721]: Just sell the old engines after autorenew/replace. Don't bother about trains exceeding the trainlimit, which will be sold anyway.
16 years ago
frosch
afe547448e
(svn r15692) -Fix [FS#2721]: Just sell the old engines after autorenew/replace. Don't bother about trains exceeding the trainlimit, which will be sold anyway.
16 years ago
smatz
c622a81fee
(svn r15680) -Cleanup: remove redundant comment
16 years ago
smatz
c2834412f7
(svn r15680) -Cleanup: remove redundant comment
16 years ago
rubidium
5c8cf85613
(svn r15434) -Codechange: bit of type safety for the DC_xxx flags.
16 years ago
rubidium
d846eef0b6
(svn r15434) -Codechange: bit of type safety for the DC_xxx flags.
16 years ago
smatz
9021c20b5e
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
rubidium
e83cca7d13
(svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter.
16 years ago
rubidium
87e5a8b52b
(svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter.
16 years ago
frosch
e9347b39e5
(svn r14442) -Fix (r14406): Typo causing problems in rare cases.
16 years ago
frosch
1358756071
(svn r14442) -Fix (r14406): Typo causing problems in rare cases.
16 years ago
rubidium
e589c7e580
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
16 years ago
rubidium
b650a86e58
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
16 years ago
rubidium
f56e630e5c
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
16 years ago
rubidium
3b798599b6
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
16 years ago
frosch
60e5d69ec4
(svn r14411) -Fix (r14406): IsFrontEngine() is only valid for trains.
16 years ago
frosch
1032dbe142
(svn r14411) -Fix (r14406): IsFrontEngine() is only valid for trains.
16 years ago
frosch
e8038cbf58
(svn r14407) -Cleanup (r14406): Remove a redundant test. (thanks SmatZ)
16 years ago
frosch
76c13beef0
(svn r14407) -Cleanup (r14406): Remove a redundant test. (thanks SmatZ)
16 years ago
frosch
32289ebd63
(svn r14406) -Fix [FS#Eddi]: Autoreplace did not work for vehicles in free wagon chains.
16 years ago
frosch
67db5087cd
(svn r14406) -Fix [FS#Eddi]: Autoreplace did not work for vehicles in free wagon chains.
16 years ago
smatz
aef674d858
(svn r14337) -Codechange: use CmdRename* and CMD_RENAME_* for vehicle, president and company renaming commands, too
16 years ago
smatz
5f4ff33ce3
(svn r14337) -Codechange: use CmdRename* and CMD_RENAME_* for vehicle, president and company renaming commands, too
16 years ago
rubidium
4ea5308d49
(svn r14306) -Codechange: unify the code to draw the vehicle list.
...
-Fix [FS#2292]: inconsistency between drawn vehicle lists in the vehicle list and group windows.
16 years ago
rubidium
fc62d736f7
(svn r14306) -Codechange: unify the code to draw the vehicle list.
...
-Fix [FS#2292]: inconsistency between drawn vehicle lists in the vehicle list and group windows.
16 years ago
smatz
1294253d68
(svn r14174) -Fix: since now, we are 'losing' things, not 'loosing'
16 years ago
smatz
c9bef19043
(svn r14174) -Fix: since now, we are 'losing' things, not 'loosing'
16 years ago
frosch
7ef5905b8c
(svn r14126) -Codechange (r14125): Add some tabs.
16 years ago
frosch
0e2736399e
(svn r14126) -Codechange (r14125): Add some tabs.
16 years ago
frosch
ec30cfeff3
(svn r14125) -Fix [FS#2237]: Segfault when autoreplace failed very early.
...
Note: Proper indenting in next commit.
16 years ago
frosch
447d0930f7
(svn r14125) -Fix [FS#2237]: Segfault when autoreplace failed very early.
...
Note: Proper indenting in next commit.
16 years ago
frosch
99ac60e5e1
(svn r14091) -Cleanup (r14083): Remove superfluous '#include's.
16 years ago
frosch
11a20379f3
(svn r14091) -Cleanup (r14083): Remove superfluous '#include's.
16 years ago
frosch
fc8997bcc3
(svn r14085) -Cleanup (r14083): Remove no longer used functions.
16 years ago
frosch
9751fbe4dc
(svn r14085) -Cleanup (r14083): Remove no longer used functions.
16 years ago
frosch
92f3c368b8
(svn r14083) -Fix [FS#1264, FS#2037, FS#2038, FS#2110]: Rewrite the autoreplace kernel.
16 years ago
frosch
f7826f8a37
(svn r14083) -Fix [FS#1264, FS#2037, FS#2038, FS#2110]: Rewrite the autoreplace kernel.
16 years ago
frosch
110a9f8fc0
(svn r14037) -Fix (r8610): The autoreplace gui showed vehicle types for replacement which CmdSetAutoReplace() did not accept.
16 years ago
frosch
4eae917c1c
(svn r14037) -Fix (r8610): The autoreplace gui showed vehicle types for replacement which CmdSetAutoReplace() did not accept.
16 years ago
frosch
5bcf7de45a
(svn r14031) -Fix (r13850): Determining the refit cargo did not work, when the old vehicle did not carry anything but the new one did.
16 years ago
frosch
731685cf64
(svn r14031) -Fix (r13850): Determining the refit cargo did not work, when the old vehicle did not carry anything but the new one did.
16 years ago
frosch
a3662216ee
(svn r13850) -Fix [FS#2146]: Fix resp. implement refitting of articulated vehicles during autoreplace.
16 years ago
frosch
1f31e117f0
(svn r13850) -Fix [FS#2146]: Fix resp. implement refitting of articulated vehicles during autoreplace.
16 years ago
smatz
f1c0555d2e
(svn r13816) -Fix [FS#2150]: check for vehicle length changes outside a depot (callback 0x11) and give a warning about that
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
smatz
a47b118a80
(svn r13691) -Codechange: make it easier to determine whether a command is ran in the context of autoreplace or not
16 years ago
smatz
447ec39f49
(svn r13691) -Codechange: make it easier to determine whether a command is ran in the context of autoreplace or not
16 years ago
rubidium
8ff56af53d
(svn r13146) -Codechange: vehicle_base.h doesn't need to be included in vehicle_gui.h.
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
373343cef6
(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
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
bjarni
5a7fcf9aa3
(svn r13002) -Fix (r13001): [autoreplace] previous fix broke updating of a pointer to the front vehicle in certain cases
...
Now it's updated when it's the front vehicle and it's every time it's the front vehicle and only if it's the front vehicle (nomatter if the replacement works or not)
17 years ago