peter1138
5f57ea7198
(svn r15739) -Codechange: Expose GRF ID of engines in var action property 0x25.
16 years ago
rubidium
c3e87f345d
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
16 years ago
rubidium
b9aa5e17f2
(svn r15617) -Change [FS#2694]: vehicle variables 40-43 weren't cached (though spec stated they are). Caching these variables can yield a 10+% speed increase when those vehicle variables are queried often.
16 years ago
frosch
a9cccbd53a
(svn r15542) -Feature(ette): Support vehicle vars 0x47 and 0xF2 in purchase list.
16 years ago
frosch
abe4692da2
(svn r15541) -Revert (r15399): 'v->cargo_type' is also used in other places, which cannot accept CT_INVALID.
...
-Codechange: Add Engine::GetDefaultCargoType() and Engine::CanCarryCargo() and use them.
-Fix [FS#2617]: When articulated parts have no available default cargo, use the cargo type of the first part for livery selection.
-Change: To decide whether a vehicle is refittable do not test its current capacity for being zero, but always use the 'capacity property'.
Note: The property is used unmodifed without calling CB 15/36. By setting it to a non-zero value and returning zero in the callback vehicles can be refitted to/from zero capacity for e.g. livery effects.
Note: It is intentional that you cannot control refittability by CB 36.
16 years ago
frosch
8aab3b09f5
(svn r15517) -Fix [FS#2642](r6455): Wagonoverrides and articulated engine parts use the colour scheme of the engine, but not its recolour callback, nor its 2CC flag. Same applies to roadvehicles.
16 years ago
frosch
72c632742a
(svn r15516) -Fix (r10097): Livery overrides for articulated parts of roadvehicles were not applied.
16 years ago
frosch
85b49d72ce
(svn r15399) -Fix [FS#2617]: For articulated parts v->cargo_type == CT_INVALID is possible.
16 years ago
frosch
9bd5420450
(svn r15378) -Fix: The subcargo returned by vehicle variable 0x42 should be the most-common-subcargo of the most-common-cargo. If nothing is transported 0x..FFFF00 should be returned.
16 years ago
smatz
9021c20b5e
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
rubidium
28ea38ae55
(svn r14949) -Cleanup: pointer coding style
16 years ago
frosch
e13dc4d99d
(svn r14945) -Feature(ette): Support var 0x45 (curvature info) also for road vehicles.
16 years ago
rubidium
abd3b8e0d7
(svn r14801) -Codechange: don't reference Vehicle::num_orders directly but through a method GetNumOrders() (PhilSophus)
16 years ago
peter1138
766bf8deaa
(svn r14776) -Fix (r14742): ListPositionMap relied on std::map having sorted the map, which is now done by a manual key sorter on SmallMap. This fixes engine ID list sorting.
16 years ago
smatz
bd92143e7b
(svn r14742) -Codechange: use SmallMap in two cases to reduce compilation time and binary size
16 years ago
rubidium
f1c7e4662a
(svn r14678) -Fix [FS#2435]: gradual filling graphics were not chosen according to the NewGRF spec (Maedhros)
16 years ago
smatz
ae6107535a
(svn r14669) -Codechange: use SmallVector instead of std::list at one place
16 years ago
rubidium
e589c7e580
(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
smatz
a756b23dc4
(svn r14383) -Fix [FS#2316](r14343): handle invalid 'v->u.air.targetairport' in the NewGRF code, too
16 years ago
frosch
d54d8bf295
(svn r13885) -Fix [FS#2168]: Var 0x7F is not feature-specific.
16 years ago
peter1138
f81b3b7357
(svn r13761) -Codechange: Remove dependency on rail for altering purchase list position (mostly function renaming)
16 years ago
rubidium
6898a76c5f
(svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool.
16 years ago
frosch
5dd1387508
(svn r13397) -Fix: Do not crash when resolving vehicle sprite groups with zero sprites.
17 years ago
peter1138
d4bf483ecd
(svn r13377) -Codechange: Let 'long format' build year work in vehicle purchase list.
17 years ago
belugas
840db9bcf0
(svn r13376) -Feature: Add access to current long year and date from Action 7/9/D and VarAction2 (23/24 or A3/A4)
...
Add access to (long format) building year, in Variational Action2 Variable 49 for Vehicles
17 years ago
smatz
69ebefe1ac
(svn r13351) -Codechange: disable warnings about unused variable for builds without asserts
17 years ago
rubidium
e7a501100a
(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
rubidium
dc77647ea4
(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
smatz
93861e78a3
(svn r12982) -Fix: compiler warning when compiling without asserts
17 years ago
rubidium
1ce0b03bf0
(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
peter1138
45034bc522
(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
1a7c1cb84b
(svn r12914) -Fix: Game crash when a spectator/server tried to show an engine with no owner when a NewGRF requested a specific variable.
17 years ago
peter1138
2d5be0185f
(svn r12910) -Fix: Report reverse sprite status (FD/FE) to NewGRF for manually toggled vehicles.
17 years ago
peter1138
33f85f80d0
(svn r12872) -Codechange: Remove obsolete unused engine list order function
17 years ago
rubidium
a3224512cc
(svn r12587) -Codechange: unduplicate some code in the Unpack*Order functions and move the 'normal' case Pack/Unpack to Order.
17 years ago
rubidium
3b0e3d8d30
(svn r12584) -Codechange: do not access the order type directly.
17 years ago
rubidium
df1d9bd880
(svn r12490) -Codechange: rename engine.h to engine_func.h and remove unneeded inclusions of engine.h and/or replace them with engine_type.h.
17 years ago
rubidium
c51b81c247
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
17 years ago
glx
1df06c7ef1
(svn r12454) -Fix (r12452): incorrect calculation for 'first vehicle in this chain of vehicles with the same ID' (thx DaleStan)
...
-Fix (r12452): wrong loading of random action 2 type 84 for non vehicle (though it shouldn't happen, but who knows ;))
17 years ago
glx
90616adcb0
(svn r12452) -Feature: [NewGRF] Add random action 2 type 84. For vehicles only.
17 years ago
glx
d9d601b1ca
(svn r12331) -Feature: [NewGRF] vehicle variable FE bit 8
17 years ago
glx
796d46ea88
(svn r12330) -Feature: [NewGRF] vehicle variable FE bit 5 and 6
17 years ago
peter1138
26c5a14d58
(svn r12314) -Fix (r4896): Include prop 25 data for all train parts, not just those that carry cargo.
17 years ago
smatz
9bdb194b2a
(svn r12197) -Fix [FS#1788](r12134): show correct last year profit when the train had negative income
...
-Codechange: use GetDisplayProfitThisYear() to convert vehicle profit to readable form
17 years ago
peter1138
1ba2ae69e6
(svn r12180) -Fix: Test purchase list loading/loaded sprites instead of unconditionally returning a possibly non-existant sprite.
17 years ago
smatz
fe48d0be21
(svn r12134) -Change: count the number of ticks a vehicle was running this day to calculate running cost
...
-Fix [FS#1739]: vehicle profit is now counted with 8bit fract, so it is now shown properly in the vehicle details window
17 years ago
peter1138
0f7392bd61
(svn r11822) -Codechange: Replaced fixed size custom name array. Names are now attached to their object directly and there is
...
no limit to the amount of names.
-Fix: NewGRF engines could not be renamed.
17 years ago
rubidium
2fc62eab05
(svn r11818) -Codechange: split player.h into smaller pieces.
17 years ago
rubidium
2d2e1e3863
(svn r11800) -Codechange: move some functions to a more logical location + some type safety.
17 years ago