Henry Wilson
097328c3d7
Codechange: Replaced SmallVector::Get() const with std alternatives
6 years ago
Henry Wilson
f3938fdb83
Codechange: Replaced SmallVector::Reset() with std::vector::clear() + shrink_to_fit()
6 years ago
Henry Wilson
a690936ed7
Codechange: Replace SmallVector::Length() with std::vector::size()
6 years ago
Jonathan G Rennison
65b9a103ad
Initial implementation of two rail types per tile
6 years ago
Jonathan G Rennison
385a2552e9
Merge branch 'enhanced_viewport_overlay' into jgrpp
7 years ago
frosch
d9d669dcf8
(svn r27984) -Codechange: Make ScopeResolver constructors/destructors inlineable. Speedup sprite resolving by about 8 percent.
7 years ago
frosch
29dca1be3b
(svn r27984) -Codechange: Make ScopeResolver constructors/destructors inlineable. Speedup sprite resolving by about 8 percent.
7 years ago
Jonathan G Rennison
740e4543c3
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/industry_cmd.cpp
7 years ago
frosch
82ae414e8d
(svn r27928) -Fix: [NewGRF] While executing random triggers, var 5F should include the new triggers.
...
-Fix: [NewGRF] Reset used random triggers only after all A123 chains have been resolved, so that all RA2 in all chains can test the shard triggers. This also includes multiple RA2 in the same A123 chain.
-Fix: [NewGRF] Industry random triggers are stored per tile, even when randomising the shared random bits of the parent industry.
7 years ago
frosch
ffdcbb8f21
(svn r27928) -Fix: [NewGRF] While executing random triggers, var 5F should include the new triggers.
...
-Fix: [NewGRF] Reset used random triggers only after all A123 chains have been resolved, so that all RA2 in all chains can test the shard triggers. This also includes multiple RA2 in the same A123 chain.
-Fix: [NewGRF] Industry random triggers are stored per tile, even when randomising the shared random bits of the parent industry.
7 years ago
Jonathan G Rennison
d204062300
Merge branch 'master' into template_train_replacement
8 years ago
frosch
117e73751c
(svn r27668) -Feature: [NewGRF] Allow composing vehicles from multiple sprites.
8 years ago
frosch
ba566e9126
(svn r27668) -Feature: [NewGRF] Allow composing vehicles from multiple sprites.
8 years ago
frosch
d2393b4f6c
(svn r27666) -Codechange: Pass vehicle sprites around using a struct VehicleSpriteSeq.
8 years ago
frosch
f36539837e
(svn r27666) -Codechange: Pass vehicle sprites around using a struct VehicleSpriteSeq.
8 years ago
Jonathan G Rennison
ff922f41da
Fix NewGRF vehicle variables 4A, FE and FF crashing with virtual trains.
...
This is due to attempts to look up the rail type of the current tile.
8 years ago
frosch
1bbe59af69
(svn r27075) -Fix [FS#6182]: Variable 47 used the carge translation table of the wrong GRF in case of callback 1D.
10 years ago
frosch
c97d3c322f
(svn r27075) -Fix [FS#6182]: Variable 47 used the carge translation table of the wrong GRF in case of callback 1D.
10 years ago
peter1138
e21ebb26c8
(svn r27060) -Doc: Remove obsolete comment (64KB LUT would be 8GB with current limits)
10 years ago
peter1138
759e963083
(svn r27060) -Doc: Remove obsolete comment (64KB LUT would be 8GB with current limits)
10 years ago
frosch
354f03ad5d
(svn r26988) -Add: [NewGRF] Allow callback 160 to access variable 61.
10 years ago
frosch
54a5b1b0d0
(svn r26988) -Add: [NewGRF] Allow callback 160 to access variable 61.
10 years ago
rubidium
39ded38c01
(svn r26866) -Change: make aircraft ascend/descend when they are too close to the ground or too far away (based on patch by ic111)
10 years ago
rubidium
c0771b1657
(svn r26866) -Change: make aircraft ascend/descend when they are too close to the ground or too far away (based on patch by ic111)
10 years ago
rubidium
2be4215f43
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
11 years ago
rubidium
0463dbdc9e
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
11 years ago
frosch
393c4fa965
(svn r26430) -Feature(ette): Add vehicle modflag 1 (unloading in progress).
11 years ago
frosch
6562ec9402
(svn r26430) -Feature(ette): Add vehicle modflag 1 (unloading in progress).
11 years ago
frosch
ce92faf682
(svn r26388) -Codechange: Move resolving of Action 3 into ResolverObject constructor.
11 years ago
frosch
6b61c4608f
(svn r26388) -Codechange: Move resolving of Action 3 into ResolverObject constructor.
11 years ago
frosch
e1ee51d43c
(svn r26294) -Change: [NewGRF] Make vehicle variable 61 return 'not available' instead of zero when using it in invalid callback contexts.
11 years ago
frosch
9e5fc88499
(svn r26294) -Change: [NewGRF] Make vehicle variable 61 return 'not available' instead of zero when using it in invalid callback contexts.
11 years ago
frosch
edf905e6cf
(svn r26157) -Feature: [NewGRF] Vehicle variable 4D for determining the position within an articulated vehicle.
11 years ago
frosch
e0d69933f6
(svn r26157) -Feature: [NewGRF] Vehicle variable 4D for determining the position within an articulated vehicle.
11 years ago
frosch
6c63c98d7f
(svn r26085) -Codechange: Pass ResolverObjects as reference instead of pointer since they are never NULL.
11 years ago
frosch
db894b0b3f
(svn r26085) -Codechange: Pass ResolverObjects as reference instead of pointer since they are never NULL.
11 years ago
rubidium
c702853917
(svn r25705) -Fix: a number of typos (inspired by 90c920601c84975acb694f3673e2beb08b013753)
11 years ago
rubidium
13855f0a09
(svn r25705) -Fix: a number of typos (inspired by 90c920601c84975acb694f3673e2beb08b013753)
11 years ago
frosch
c5d7445704
(svn r25185) -Fix [FS#5508]: Remove ambivalent functions CargoList::Empty() and Count(), and replace them with VehicleCargoList::StoredCount(), TotalCount(), StationCargoList::AvailableCount() and TotalCount(). (fonsinchen)
12 years ago
frosch
5eddbb338b
(svn r25185) -Fix [FS#5508]: Remove ambivalent functions CargoList::Empty() and Count(), and replace them with VehicleCargoList::StoredCount(), TotalCount(), StationCargoList::AvailableCount() and TotalCount(). (fonsinchen)
12 years ago
rubidium
2c67dc3d9f
(svn r24994) -Codechange: Replace access to service_interval with accessors (peter1138)
12 years ago
rubidium
c77cd1f409
(svn r24994) -Codechange: Replace access to service_interval with accessors (peter1138)
12 years ago
planetmaker
f00d9976f9
(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
12 years ago
planetmaker
c24374f99c
(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
12 years ago
frosch
f5131bd588
(svn r24695) -Fix/Cleanup: Remove remaining (incorrect) usages of ResolverObject::scope and count.
12 years ago
frosch
b65ece1ea9
(svn r24695) -Fix/Cleanup: Remove remaining (incorrect) usages of ResolverObject::scope and count.
12 years ago
alberth
6c1ff5f772
(svn r24693) -Doc: Add some doxymentation into the newgrf code.
12 years ago
alberth
33ff55a8f1
(svn r24693) -Doc: Add some doxymentation into the newgrf code.
12 years ago
alberth
8a297ca5f1
(svn r24692) -Cleanup: Cleanup final parts of the old resolver code.
12 years ago
alberth
4c9bea2a71
(svn r24692) -Cleanup: Cleanup final parts of the old resolver code.
12 years ago
alberth
7b18c31f37
(svn r24691) -Codechange: Add resolver classes for vehicles.
12 years ago
alberth
69e07c3e00
(svn r24691) -Codechange: Add resolver classes for vehicles.
12 years ago
alberth
6a619b40d5
(svn r24678) -Codechange: Introduce scope resolver base class and prepare for adding derived classes.
12 years ago
alberth
438495b433
(svn r24678) -Codechange: Introduce scope resolver base class and prepare for adding derived classes.
12 years ago
frosch
f7ca5d29ed
(svn r24528) -Fix: [NewGRF] RandomAction 84 should interpret register 100 as signed.
12 years ago
frosch
38f265c083
(svn r24528) -Fix: [NewGRF] RandomAction 84 should interpret register 100 as signed.
12 years ago
frosch
a9167a52db
(svn r24527) -Add: [NewGRF] Allow resolving var 5F via vehicle var 61.
12 years ago
frosch
e37e2d92a6
(svn r24527) -Add: [NewGRF] Allow resolving var 5F via vehicle var 61.
12 years ago
michi_cc
a763497cd1
(svn r24371) -Add: [NewGRF] Allow vehicle variable 61 for callback 2D (recolour) and re-randomisation.
12 years ago
michi_cc
6f88071942
(svn r24371) -Add: [NewGRF] Allow vehicle variable 61 for callback 2D (recolour) and re-randomisation.
12 years ago
frosch
270554f95f
(svn r24360) -Fix [FS#5224]: Ship-specific 80+x variables were missing for unknown reason. (Hirundo)
12 years ago
frosch
ee25344a6d
(svn r24360) -Fix [FS#5224]: Ship-specific 80+x variables were missing for unknown reason. (Hirundo)
12 years ago
frosch
268e4d65c9
(svn r24330) -Fix (r24321): Do not use the vehicle list order changes from the previous savegames, but only ever from the current one.
12 years ago
frosch
86b013f872
(svn r24330) -Fix (r24321): Do not use the vehicle list order changes from the previous savegames, but only ever from the current one.
12 years ago
frosch
741f0a15b6
(svn r24321) -Change/Fix [FS#4254]: [NewGRF] Group vehicles in the purchase list properly by source GRF, but also consider engine GRFID overrides.
12 years ago
frosch
8ec00c4cc9
(svn r24321) -Change/Fix [FS#4254]: [NewGRF] Group vehicles in the purchase list properly by source GRF, but also consider engine GRFID overrides.
12 years ago
michi_cc
d561bfe4db
(svn r24246) -Add [FS#5052-ish]: [NewGRF] Variable with the current max speed for vehicles.
13 years ago
michi_cc
ce5c936b07
(svn r24246) -Add [FS#5052-ish]: [NewGRF] Variable with the current max speed for vehicles.
13 years ago
frosch
fb9562c83a
(svn r23965) -Fix [FS#5070]: Refittability should never depend on the current capacity of a vehicle.
13 years ago
frosch
5167f2be29
(svn r23965) -Fix [FS#5070]: Refittability should never depend on the current capacity of a vehicle.
13 years ago
frosch
e3e7375c6d
(svn r23748) -Fix: Make vehicle variables A8 and A9 always return 0. Returning cur_image is a potential desyncer due to Action1 in static NewGRFs.
13 years ago
frosch
bc9c8db287
(svn r23748) -Fix: Make vehicle variables A8 and A9 always return 0. Returning cur_image is a potential desyncer due to Action1 in static NewGRFs.
13 years ago
rubidium
d5eeab43b7
(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files
13 years ago
rubidium
6d6be50ae0
(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files
13 years ago
rubidium
24263638bf
(svn r23526) -Codechange: unify cargos vs cargoes
13 years ago
rubidium
3d88c74389
(svn r23526) -Codechange: unify cargos vs cargoes
13 years ago
frosch
948f77eac3
(svn r23503) -Fix (r23143): Desync debug wants to resolve vehicle variables of vehicles without NewGRF. So, let it.
13 years ago
frosch
686f51d810
(svn r23503) -Fix (r23143): Desync debug wants to resolve vehicle variables of vehicles without NewGRF. So, let it.
13 years ago
frosch
dea03342aa
(svn r23502) -Fix (r23143): Vehicle var 42 used a cargo translation table of the wrong GRF.
13 years ago
frosch
44dc83b73f
(svn r23502) -Fix (r23143): Vehicle var 42 used a cargo translation table of the wrong GRF.
13 years ago
michi_cc
d7b2bd7aa5
(svn r23231) -Fix: [NewGRF] Make train var 0xF3 consistent with TTDPatch.
13 years ago
michi_cc
d7d032f70a
(svn r23231) -Fix: [NewGRF] Make train var 0xF3 consistent with TTDPatch.
13 years ago
frosch
80e5c79bd6
(svn r23174) -Codechange: Deduplicate code between GetEngineProperty() and GetVehicleProperty().
13 years ago
frosch
50b480b959
(svn r23174) -Codechange: Deduplicate code between GetEngineProperty() and GetVehicleProperty().
13 years ago
frosch
d4d40fc8d7
(svn r23156) -Change: [NewGRF] Clamp height in aircraft variable 44.
13 years ago
frosch
8a2342a5e6
(svn r23156) -Change: [NewGRF] Clamp height in aircraft variable 44.
13 years ago
frosch
1ab369c1d8
(svn r23143) -Change: [NewGRF v8] Return the translated cargobit in vehicle var 42.
13 years ago
frosch
449d679230
(svn r23143) -Change: [NewGRF v8] Return the translated cargobit in vehicle var 42.
13 years ago
frosch
46e77ee24f
(svn r23138) -Feature: [NewGRF] Allow passing 32bit parameters to 60+x variables (using var 7B). Currently most useful for vehicle var 60.
13 years ago
frosch
1ad7239247
(svn r23138) -Feature: [NewGRF] Allow passing 32bit parameters to 60+x variables (using var 7B). Currently most useful for vehicle var 60.
13 years ago
frosch
6e61fee028
(svn r23080) -Feature: [NewGRF] Use variable 10 to enable vehicle GRFs to draw different sprites on the map and in various GUIs.
13 years ago
frosch
bbc3409942
(svn r23080) -Feature: [NewGRF] Use variable 10 to enable vehicle GRFs to draw different sprites on the map and in various GUIs.
13 years ago
frosch
ad38f27242
(svn r23075) -Codechange: Add GetGRF() and GetGRFID() methods to Engine and Vehicle to simplify code.
13 years ago
frosch
acc3c75951
(svn r23075) -Codechange: Add GetGRF() and GetGRFID() methods to Engine and Vehicle to simplify code.
13 years ago
frosch
e57ba5d0ae
(svn r23074) -Codechange: Add Vehicle::GetEngine() to simplify code.
13 years ago
frosch
72cd855978
(svn r23074) -Codechange: Add Vehicle::GetEngine() to simplify code.
13 years ago
michi_cc
bc61dc938d
(svn r23068) -Add: [NewGRF] Long date of last service for vehicles, also available in the purchase list.
13 years ago
michi_cc
a6713244df
(svn r23068) -Add: [NewGRF] Long date of last service for vehicles, also available in the purchase list.
13 years ago
michi_cc
f6340254ae
(svn r22998) -Add [FS#2521]: [NewGRF] Act2 var 0x62 to get curvature/position difference to the n-th vehicle in vehicle chain.
13 years ago
michi_cc
12e28de818
(svn r22998) -Add [FS#2521]: [NewGRF] Act2 var 0x62 to get curvature/position difference to the n-th vehicle in vehicle chain.
13 years ago
michi_cc
1dcf0c5233
(svn r22997) -Feature: [NewGRF] Allow access to other vehicles in the vehicle chain in VarAction 2.
13 years ago
michi_cc
3cb1dcf31c
(svn r22997) -Feature: [NewGRF] Allow access to other vehicles in the vehicle chain in VarAction 2.
13 years ago
frosch
91f0eedbff
(svn r22946) -Fix [FS#4781]: [NewGRF] Crash when accessing vehicle var 44 for a non-front aircraft.
13 years ago
frosch
427dd736ae
(svn r22946) -Fix [FS#4781]: [NewGRF] Crash when accessing vehicle var 44 for a non-front aircraft.
13 years ago
frosch
92b69aa8f8
(svn r22848) -Add: The missing bits in station variable 43.
13 years ago
frosch
c6e29a5b89
(svn r22848) -Add: The missing bits in station variable 43.
13 years ago
frosch
0f8065fef4
(svn r22635) -Fix: Correctly reseed random bits of industries and industry tiles.
13 years ago
frosch
8930337aae
(svn r22635) -Fix: Correctly reseed random bits of industries and industry tiles.
13 years ago
frosch
e2a5d69cb7
(svn r22634) -Codechange: Deduplicate some code. Note that zeroing 'count' is intentionally removed, it is only used together with 'scope'.
13 years ago
frosch
8b18292a2e
(svn r22634) -Codechange: Deduplicate some code. Note that zeroing 'count' is intentionally removed, it is only used together with 'scope'.
13 years ago
frosch
7c04ea586d
(svn r21933) -Codechange: Split cur_order_index into cur_auto_order_index and cur_real_order_index to keep track of the current real order in an unambiguous way.
...
-Fix [FS#4440]: Automatic orders behave now stable wrt. service orders and are not added or removed depending on the need of servicing.
-Fix: Various other issues with automatic orders, e.g. vehicles getting stuck with "no orders" when there are automatic orders at the end of the order list.
14 years ago
frosch
a97d52a29a
(svn r21933) -Codechange: Split cur_order_index into cur_auto_order_index and cur_real_order_index to keep track of the current real order in an unambiguous way.
...
-Fix [FS#4440]: Automatic orders behave now stable wrt. service orders and are not added or removed depending on the need of servicing.
-Fix: Various other issues with automatic orders, e.g. vehicles getting stuck with "no orders" when there are automatic orders at the end of the order list.
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
terkhen
74c061c29a
(svn r21518) -Codechange: Rename AccelerationCache to GroundVehicleCache.
14 years ago
terkhen
12c86a1391
(svn r21518) -Codechange: Rename AccelerationCache to GroundVehicleCache.
14 years ago
terkhen
47c9189002
(svn r21516) -Codechange: Add IsGroundVehicle function to the Vehicle class.
14 years ago
terkhen
79e2b3153d
(svn r21516) -Codechange: Add IsGroundVehicle function to the Vehicle class.
14 years ago
rubidium
aeae689dc4
(svn r21338) -Fix [FS#4272]: bogus cache mismatch warnings with desync debugging because some cache was invalidated but never reset
14 years ago
rubidium
b46e57d364
(svn r21338) -Fix [FS#4272]: bogus cache mismatch warnings with desync debugging because some cache was invalidated but never reset
14 years ago
rubidium
878a06dd9a
(svn r21198) -Fix: don't call variables properties in debug messages
14 years ago
rubidium
a6a2fbd937
(svn r21198) -Fix: don't call variables properties in debug messages
14 years ago
terkhen
25e638adcb
(svn r21099) -Codechange: Store road vehicle max speed in the vehicle cache.
14 years ago
terkhen
18e3a3ddfc
(svn r21099) -Codechange: Store road vehicle max speed in the vehicle cache.
14 years ago
terkhen
79ab8cb571
(svn r21098) -Codechange: Ships now store their max speed in the cache instead of recalculating it every time.
14 years ago
terkhen
25d1b2f54b
(svn r21098) -Codechange: Ships now store their max speed in the cache instead of recalculating it every time.
14 years ago
terkhen
ca755e983c
(svn r21097) -Codechange: Unify cached max speed for all vehicle types.
14 years ago
terkhen
c8a56f17f8
(svn r21097) -Codechange: Unify cached max speed for all vehicle types.
14 years ago
terkhen
9dbd35a2ae
(svn r21095) -Codechange: Use a function to convert aircraft speed to old units.
14 years ago
terkhen
cfac2ced69
(svn r21095) -Codechange: Use a function to convert aircraft speed to old units.
14 years ago
terkhen
78e8a17729
(svn r21091) -Codechange: Add bit constants for checking NewGRFCache validity.
14 years ago
terkhen
d699c4a345
(svn r21091) -Codechange: Add bit constants for checking NewGRFCache validity.
14 years ago
terkhen
36c5f3c97c
(svn r21090) -Codechange: Rename VehicleCache to NewGRFCache.
14 years ago
terkhen
8eb3d653da
(svn r21090) -Codechange: Rename VehicleCache to NewGRFCache.
14 years ago
yexo
ed92106135
(svn r20800) -Fix: [NewGRF] clamp some more vehicle variables
14 years ago
yexo
aaf370dce2
(svn r20800) -Fix: [NewGRF] clamp some more vehicle variables
14 years ago
yexo
340a1ff111
(svn r20799) -Fix: [NewGRF] clamp vehicle var 0xC2 (max age) to uint16 (Hirundo)
14 years ago
yexo
ce649b0a73
(svn r20799) -Fix: [NewGRF] clamp vehicle var 0xC2 (max age) to uint16 (Hirundo)
14 years ago
yexo
78a2b26ea3
(svn r20792) -Fix (r8973): [NewGRF] vehicle vars 0x98 and 0xB4 (max speed and current speed) used the wrong unit for aircraft (Hirundo)
14 years ago
yexo
8fafaf3224
(svn r20792) -Fix (r8973): [NewGRF] vehicle vars 0x98 and 0xB4 (max speed and current speed) used the wrong unit for aircraft (Hirundo)
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
rubidium
64264317a3
(svn r20605) -Fix [FS#4063]: let NewGRFs var43 var (information about liveries) for vehicles not be influenced by the local setting determining whether to show liveries or not.
14 years ago
rubidium
9d1145e50c
(svn r20605) -Fix [FS#4063]: let NewGRFs var43 var (information about liveries) for vehicles not be influenced by the local setting determining whether to show liveries or not.
14 years ago
frosch
b5cf9bc034
(svn r20502) -Fix (r12330): VRF_POWEREDWAGON is part of train flags, not vehicle_flags.
14 years ago
frosch
c52f42ea21
(svn r20502) -Fix (r12330): VRF_POWEREDWAGON is part of train flags, not vehicle_flags.
14 years ago
yexo
f1d3b66156
(svn r20477) -Codechange: remove some airport-related constants/functions and add some documentation
14 years ago
yexo
e4117dbfb7
(svn r20477) -Codechange: remove some airport-related constants/functions and add some documentation
14 years ago
rubidium
b5d5a4e159
(svn r20437) -Codechange: lets Engines use GRFFilePropsBase as well
14 years ago
rubidium
29b489a055
(svn r20437) -Codechange: lets Engines use GRFFilePropsBase as well
14 years ago