frosch
b08d8c7edb
Cleanup 9f42358: Make also reliability_start randomised independent of introduction date.
2021-01-03 14:56:43 +00:00
frosch
d24a9a9df5
Cleanup 8139b14: Move a comment back to the line it belongs to, and add a comment for new code.
2021-01-03 14:56:43 +00:00
SamuXarick
9f423586ad
Change #8325 : Make engine reliability independent of introduction date ( #8470 )
2020-12-31 17:06:48 +01:00
Charles Pigott
860c270c73
Codechange: Replace assert_compile macro with static_assert
2020-12-27 10:55:42 +00:00
Michael Lutz
79240eab1e
Codechange: Make use of the improved C++17 emplace_back function.
2020-12-15 00:29:30 +01:00
Michael Lutz
63ccb36ef3
Codechange: Use std::string for most of the user-settable custom names.
2020-05-21 20:02:34 +02:00
Pavel Stupnikov
d7a928a08b
Feature: GS method to control engine availability for a specific company ( #7791 )
...
* Feature: GS method to allow company to use an engine before its introduction date
* Feature: GS method to retire an engine early for a specific company
2020-01-15 18:46:26 +01:00
glx
d8a1be48cd
Codechange: Replace vehicle related FOR_ALL with range-based for loops
2019-12-21 20:13:03 +01:00
glx
1f6b3a37f9
Codechange: Replace FOR_ALL_ENGINES with range-based for loops
2019-12-21 20:13:03 +01:00
glx
3a14cea068
Codechange: Replace FOR_ALL_COMPANIES with range-based for loops
2019-12-21 20:13:03 +01:00
S. D. Cloudt
13cc8a0cee
Cleanup: Removed SVN headers
2019-11-10 17:59:20 +00:00
peter1138
c02ef3e456
Feature: Add NotRoadTypes (NRT)
2019-05-01 21:36:27 +02:00
Henry Wilson
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
2019-04-10 23:22:20 +02:00
Henry Wilson
ab711e6942
Codechange: Replaced SmallVector::[Begin|End]() with std alternatives
2019-03-26 20:15:57 +00:00
Henry Wilson
a0f36a50e6
Codechange: Replaced SmallVector::Append() with std::vector::[push|emplace]_back()
2019-03-26 20:15:57 +00:00
Henry Wilson
a690936ed7
Codechange: Replace SmallVector::Length() with std::vector::size()
2019-03-26 20:15:57 +00:00
Henry Wilson
bfd79e59dc
Codechange: Replace SmallVector::Clear() with std::vector::clear()
2019-03-26 20:15:57 +00:00
Eddi-z
8139b14e9c
Change: Synchronize introduction date and reliability randomness across vehicles with the same base introduction date ( #7147 )
2019-03-02 21:28:22 +00:00
Charles Pigott
f5b1115039
Doc: Lots and lots of doxymentation fixes
2018-10-31 12:35:54 +01:00
Johannes E. Krause
662dcc3c31
Fix #6920 : Make 9.8m/s^2 a common constant for TE-calculation
2018-09-30 20:45:41 +02:00
PeterN
4cebebcf68
Change: Add CargoTypes type for cargo masks. ( #6790 )
2018-05-21 22:08:39 +01:00
alberth
ad88588481
(svn r27797) -Add: Display aircraft type in its vehicle window (patch by Samu)
2017-03-18 20:43:43 +00:00
frosch
4b8b9e1cb1
(svn r27700) -Codechange: Simplify railtype date introduction. A check that is safe to run every day before the last railtype has been introduced, is also safe to run after the last railtype has been introduced.
2016-12-20 12:35:36 +00:00
frosch
ee9a54c0a0
(svn r27598) -Fix: Company 0 could accept engine previews before they were offered.
2016-06-09 19:04:53 +00:00
frosch
ebb6e38075
(svn r27578) -Fix [FS#6454]: Vehicles could not be hidden from the purchase list when they were in exclusive preview.
2016-05-22 11:04:34 +00:00
alberth
f72ad87540
(svn r26802) -Add: Command to set visibility of an engine for a company (based on patch by Juanjo).
2014-09-07 16:12:58 +00:00
rubidium
9ed12b0f07
(svn r26509) -Codechange: replace strdup with stredup (the latter ensures the return is not NULL)
2014-04-25 15:40:32 +00:00
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
2014-04-23 20:13:33 +00:00
alberth
24d3594723
(svn r25640) -Fix: Do not suggest a start date for the game when there will be no vehicles available at all.
2013-07-31 07:30:18 +00:00
alberth
46901b73b2
(svn r25639) -Codechange: Rename both 'STR_ERROR_NO_VEHICLES_AVAILABLE*' strings.
2013-07-31 07:25:58 +00:00
rubidium
1efc64fa7d
(svn r25553) -Fix [FS#5530]: provide a warning when no vehicles are available, and tell what to do in that case
2013-07-02 18:57:26 +00:00
planetmaker
c24374f99c
(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
2013-01-08 22:46:42 +00:00
frosch
f93602aec9
(svn r24813) -Change: Offer engine previews only to companies which actually use the particular vehicle-type/cargo-type combination.
2012-12-09 16:55:57 +00:00
frosch
51fca5eec7
(svn r24812) -Fix: Close pending preview windows when the engine is introduced to everyone.
2012-12-09 16:55:38 +00:00
frosch
5c358c4173
(svn r24811) -Add: Close engine preview window when another client accepts it.
2012-12-09 16:55:21 +00:00
frosch
0e4b212c45
(svn r24810) -Fix: Make engine preview offers more robust wrt. changes in the company ranking.
2012-12-09 16:55:03 +00:00
yexo
3439769fef
(svn r24660) -Feature: do not display the preview window for disabled vehicle types (Eagle_rainbow)
2012-11-01 22:42:29 +00:00
alberth
0849fb8d36
(svn r24535) -Doc: Two additions, lots of small spelling fixes, and some Doxygen improvements.
2012-09-21 09:47:21 +00:00
frosch
9f9cad1ac9
(svn r24492) -Add: [NoGo] Useful behaviour for GSEngine::IsValidEngine and GSEngine::IsBuildable when outside GSCompanyMode scope.
2012-08-21 19:53:08 +00:00
frosch
a8c88f43b6
(svn r24284) -Codechange: Remove NewsSubtypes and directly use NewsTypes and NewsFlag instead.
2012-05-26 14:16:03 +00:00
frosch
fb63991851
(svn r24200) -Fix [FS#5149]: Invalidate build vehicle windows every month, in case they need resorting due to changed reliabilities.
2012-05-05 19:25:20 +00:00
frosch
1777809e14
(svn r23861) -Feature: [NewGRF] New algorithm (activated via an engine flag) to determine the capacity of vehicles. This allows vehicles to better control the capacity for cargotypes which they know; and let cargo NewGRFs influence the capacity for cargos the vehicle NewGRF does not know, but which the vehicle is refittable to due to cargo classes.
2012-01-28 12:11:23 +00:00
frosch
90c53046c7
(svn r23860) -Feature: [NewGRF] Add cargo property 1D to set the capacity multipliers when refitting vehicles, which do not use callback 15.
2012-01-28 12:08:03 +00:00
rubidium
6d6be50ae0
(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files
2012-01-03 21:32:51 +00:00
truebrain
9359c6fc47
(svn r23615) -Add: more API functions exposed to NoGo (part 2)
2011-12-19 20:57:34 +00:00
rubidium
3d88c74389
(svn r23526) -Codechange: unify cargos vs cargoes
2011-12-15 21:56:00 +00:00
michi_cc
def8e7215b
(svn r23504) -Feature: Aircraft range.
2011-12-13 00:43:35 +00:00
truebrain
98103121d4
(svn r23355) -Codechange: rename all AI* to Script* (Rubidium)
2011-11-29 23:15:35 +00:00
frosch
0fbad47371
(svn r23176) -Codechange: Deduplicate code between Engine::DetermineCapacity() and Engine::GetDisplayDefaultCapacity().
2011-11-09 16:41:36 +00:00
frosch
88b2e687c2
(svn r23175) -Codechange: Refactor Engine::DetermineCapacity().
2011-11-09 16:40:36 +00:00
frosch
50b480b959
(svn r23174) -Codechange: Deduplicate code between GetEngineProperty() and GetVehicleProperty().
2011-11-09 16:39:34 +00:00
frosch
026317bb44
(svn r23173) -Codechange: Rename GetVehicleCapacity() to Engine::DetermineCapacity().
2011-11-09 16:38:50 +00:00
yexo
e98be8ed24
(svn r23083) -Fix: run StartupEngines() if NewGRFs changed during loading a savegame, just like it's running when NewGRFs are changed during a game
2011-11-03 12:54:02 +00:00
frosch
acc3c75951
(svn r23075) -Codechange: Add GetGRF() and GetGRFID() methods to Engine and Vehicle to simplify code.
2011-11-01 00:23:41 +00:00
frosch
b78a459613
(svn r22977) -Codechange: Rename SetCachedEngineCounts() to GroupStatistics::UpdateAfterLoad().
2011-10-03 17:20:56 +00:00
frosch
b6766c2ed5
(svn r22976) -Codechange: Split group statistics into separate struct.
2011-10-03 17:20:26 +00:00
frosch
7133887ed6
(svn r22975) -Codechange: Do not store Group::num_vehicle in the savegame, but compute it like num_engines on load.
2011-10-03 17:19:54 +00:00
michi_cc
08b7981f37
(svn r22713) -Feature: [NewGRF] Per vehicle custom cargo ageing period.
2011-08-03 20:55:08 +00:00
frosch
5e0bf4ada8
(svn r22690) -Fix: [NewGRF] Aircrafts defined with IDs above the default aircrafts always defaulted to passenger cargo.
2011-07-27 19:38:43 +00:00
rubidium
fb5ecb9499
(svn r22411) -Document: another bunch of bits
2011-05-02 17:42:12 +00:00
frosch
d12c2dfa24
(svn r22250) -Cleanup (r16378): Engines poolitems do not need a flag for validness anymore. The pool knows that on its own.
2011-03-13 22:05:29 +00:00
alberth
bb4d832146
(svn r22239) -Doc: Further engine doxyment additions.
2011-03-13 16:43:00 +00:00
smatz
887a7724dc
(svn r22025) -Fix: verify there is enough space in the pool when creating new pool items while loading old savegames
2011-02-08 18:34:13 +00:00
frosch
ef3ec0f8c8
(svn r21987) -Fix: Make news items, engine previews and AI preview events deal with no longer existing Engine items after resetting the pool.
2011-02-05 20:41:13 +00:00
frosch
faa2a26ae1
(svn r21986) -Codechange: Add helper function to test whether an engine is still associated to a GRF.
2011-02-05 20:37:00 +00:00
frosch
915e339d0f
(svn r21975) -Add: console command to reset the engine pool. It removes the traces of engines which are no longer associated to a NewGRF, and can be used to e.g. 'fix' scenarios which were screwed up by the author. You can only use it when there are no vehicles in the game though.
2011-02-05 16:07:23 +00:00
rubidium
b8c9988d9f
(svn r21842) -Feature [FS#4393]: [NewGRF] Introduction dates/required types for rail types; e.g. introduce a particular rail type in 1960 (or when a vehicle using it is introduced), but also allow limiting its introduction to only happen when the required railtypes are available
2011-01-18 21:30:59 +00:00
rubidium
6371b75bcc
(svn r21841) -Feature: [NewGRF] Allow to define other railtypes that should be introduced if a particular rail type is introduced, e.g. to make sure slow rail is introduced when fast rail gets introduced
2011-01-18 21:28:07 +00:00
smatz
aa4f269f3e
(svn r21652) -Cleanup: one semicolon is enough
2010-12-28 14:22:51 +00:00
rubidium
ab9cc74ba5
(svn r21410) -Codechange: limit engine name by amount of characters, not bytes
2010-12-05 22:24:20 +00:00
planetmaker
f6aa80c617
(svn r21374) -Fix: Purchases lists were not invalidated when using 'resetengines'
2010-12-04 08:38:02 +00:00
rubidium
2223ff92c7
(svn r21240) -Feature: [NewGRF] Implement action0 visual effect properties for ships and RVs (Hirundo)
2010-11-18 14:32:09 +00:00
rubidium
46186134c8
(svn r21239) -Codechange/Fix: [NewGRF] Use 0xFF instead of 0 as default value for visual effect. This makes setting train prop 22 to 0 actually work (Hirundo)
2010-11-18 14:20:03 +00:00
planetmaker
c36da4841b
(svn r21101) -Doc: Additions and clarifications of doxygen comments
2010-11-06 16:55:15 +00:00
terkhen
b65df93121
(svn r21100) -Feature [NewGRF]: Add CB36 support for road vehicle property 0x15 (Speed).
2010-11-06 13:11:24 +00:00
terkhen
c87e023d7a
(svn r21058) -Feature [NewGRF]: Add CB36 support for road vehicle properties 0x13 (Power), 0x14 (Weight) and 0x18 (Tractive effort).
2010-10-30 14:31:49 +00:00
terkhen
897bb71621
(svn r20856) -Fix [FS#4141]: Road/water toolbars did not get updated when the first vehicle of their type becomes available.
2010-09-28 21:58:06 +00:00
rubidium
29b489a055
(svn r20437) -Codechange: lets Engines use GRFFilePropsBase as well
2010-08-10 15:54:53 +00:00
alberth
5556955960
(svn r20318) -Doc: Doxygen additions.
2010-08-02 20:32:39 +00:00
alberth
73f45d16d1
(svn r20317) -Codechange: Move variable declaration to their first use.
2010-08-02 20:19:10 +00:00
frosch
4bd32799f1
(svn r20286) -Codechange: Unify end of doxygen comments.
2010-08-01 19:44:49 +00:00
frosch
ed4f806f1d
(svn r20283) -Codechange: Unify start of doygen comments.
2010-08-01 19:22:34 +00:00
alberth
be6c058424
(svn r20211) -Codechange: Indented code should have curly braces around it.
2010-07-24 10:14:39 +00:00
rubidium
e809c05099
(svn r20164) -Fix [FS#3870]: inconsistencies w.r.t. to km/h vs km-ish/h as "base" unit for aircraft speeds
2010-07-16 17:45:34 +00:00
frosch
1055c2b0fd
(svn r20106) -Fix (r5999): Engine and vehicle age were clamped at 0xFFFF, though there are 32bit available.
2010-07-10 08:54:57 +00:00
frosch
557c3f7daa
(svn r19879) -Codechange: Also hide invalid engines from purchase lists.
2010-05-22 11:53:54 +00:00
yexo
9a2e53e803
(svn r19660) -Feature: [NewGRF] support cb36 for aircraft speed also in the build menu
2010-04-17 17:45:44 +00:00
terkhen
d7f7c8949f
(svn r19360) -Add: [NewGRF] When the tractive effort of a road vehicle is not set, use a default value of 4C.
2010-03-06 19:48:17 +00:00
terkhen
be3b839ded
(svn r19347) -Add: Vehicle GUI now shows power, weight and tractive effort for road vehicles.
2010-03-06 12:59:28 +00:00
frosch
63b01f2009
(svn r19218) -Feature: [NewGRF] Add CB36 support for aircraft properties 0F and 11. (Eddi)
2010-02-22 21:46:20 +00:00
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
2010-01-15 16:41:15 +00:00
rubidium
b00a5f1069
(svn r18330) -Cleanup: remove some unneeded includes
2009-11-28 20:35:25 +00:00
frosch
d507136e04
(svn r18268) -Feature: [NewGRF] Make price base multipliers related to vehicles only apply to the GRF locally, if it defines engines of that type itself.
2009-11-24 13:15:58 +00:00
frosch
912bce0b8c
(svn r18266) -Codechange: Add a function to compute prices from price base and cost factor and use it consistently for vehicle purchase, running cost, and refit cost.
2009-11-24 13:12:34 +00:00
rubidium
c2221885f4
(svn r18027) -Codechange: make some unneededly global variables static and remove some unused variables
2009-11-09 09:59:35 +00:00
frosch
6ca8f6e380
(svn r18011) -Feature(ette): [NewGRF] CB 36 for roadvehicle property 09 'running cost factor'.
2009-11-08 13:02:05 +00:00
frosch
ba1fc280e3
(svn r18005) -Codechange: Convert the Prices struct into an array and an enum.
2009-11-07 22:47:54 +00:00
frosch
67cae40ec1
(svn r17926) -Fix (r9352): Make the decision whether aircraft carry mail consistent. Now always the cargo class decides.
2009-10-31 17:48:09 +00:00
frosch
83894809d0
(svn r17897) -Fix [FS#3255]: CB15 and CB36 (capacity) were not always called when they should.
...
-Codechange: Move capacity calculation to a single function for all vehicle types, so the behaviour can be kept consistent easier.
2009-10-28 18:31:16 +00:00
frosch
59195a6f20
(svn r17758) -Revert (r17208): Use assert_compile() if you cannot count.
...
-Fix (r7326): Powernaut Helicopter got wrong 'load amount'.
-Fix (r2639): Call the Evil by its name.
2009-10-10 18:48:13 +00:00