summaryrefslogtreecommitdiff
path: root/src/engine.cpp
AgeCommit message (Collapse)Author
2016-12-20(svn r27700) -Codechange: Simplify railtype date introduction. A check that ↵frosch
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-06-09(svn r27598) -Fix: Company 0 could accept engine previews before they were ↵frosch
offered.
2016-05-22(svn r27578) -Fix [FS#6454]: Vehicles could not be hidden from the purchase ↵frosch
list when they were in exclusive preview.
2014-09-07(svn r26802) -Add: Command to set visibility of an engine for a company ↵alberth
(based on patch by Juanjo).
2014-04-25(svn r26509) -Codechange: replace strdup with stredup (the latter ensures ↵rubidium
the return is not NULL)
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2013-07-31(svn r25640) -Fix: Do not suggest a start date for the game when there will ↵alberth
be no vehicles available at all.
2013-07-31(svn r25639) -Codechange: Rename both 'STR_ERROR_NO_VEHICLES_AVAILABLE*' ↵alberth
strings.
2013-07-02(svn r25553) -Fix [FS#5530]: provide a warning when no vehicles are ↵rubidium
available, and tell what to do in that case
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-12-09(svn r24813) -Change: Offer engine previews only to companies which actually ↵frosch
use the particular vehicle-type/cargo-type combination.
2012-12-09(svn r24812) -Fix: Close pending preview windows when the engine is ↵frosch
introduced to everyone.
2012-12-09(svn r24811) -Add: Close engine preview window when another client accepts it.frosch
2012-12-09(svn r24810) -Fix: Make engine preview offers more robust wrt. changes in ↵frosch
the company ranking.
2012-11-01(svn r24660) -Feature: do not display the preview window for disabled ↵yexo
vehicle types (Eagle_rainbow)
2012-09-21(svn r24535) -Doc: Two additions, lots of small spelling fixes, and some ↵alberth
Doxygen improvements.
2012-08-21(svn r24492) -Add: [NoGo] Useful behaviour for GSEngine::IsValidEngine and ↵frosch
GSEngine::IsBuildable when outside GSCompanyMode scope.
2012-05-26(svn r24284) -Codechange: Remove NewsSubtypes and directly use NewsTypes and ↵frosch
NewsFlag instead.
2012-05-05(svn r24200) -Fix [FS#5149]: Invalidate build vehicle windows every month, ↵frosch
in case they need resorting due to changed reliabilities.
2012-01-28(svn r23861) -Feature: [NewGRF] New algorithm (activated via an engine flag) ↵frosch
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(svn r23860) -Feature: [NewGRF] Add cargo property 1D to set the capacity ↵frosch
multipliers when refitting vehicles, which do not use callback 15.
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
2011-12-19(svn r23615) -Add: more API functions exposed to NoGo (part 2)truebrain
2011-12-15(svn r23526) -Codechange: unify cargos vs cargoesrubidium
2011-12-13(svn r23504) -Feature: Aircraft range.michi_cc
2011-11-29(svn r23355) -Codechange: rename all AI* to Script* (Rubidium)truebrain
2011-11-09(svn r23176) -Codechange: Deduplicate code between ↵frosch
Engine::DetermineCapacity() and Engine::GetDisplayDefaultCapacity().
2011-11-09(svn r23175) -Codechange: Refactor Engine::DetermineCapacity().frosch
2011-11-09(svn r23174) -Codechange: Deduplicate code between GetEngineProperty() and ↵frosch
GetVehicleProperty().
2011-11-09(svn r23173) -Codechange: Rename GetVehicleCapacity() to ↵frosch
Engine::DetermineCapacity().
2011-11-03(svn r23083) -Fix: run StartupEngines() if NewGRFs changed during loading a ↵yexo
savegame, just like it's running when NewGRFs are changed during a game
2011-11-01(svn r23075) -Codechange: Add GetGRF() and GetGRFID() methods to Engine and ↵frosch
Vehicle to simplify code.
2011-10-03(svn r22977) -Codechange: Rename SetCachedEngineCounts() to ↵frosch
GroupStatistics::UpdateAfterLoad().
2011-10-03(svn r22976) -Codechange: Split group statistics into separate struct.frosch
2011-10-03(svn r22975) -Codechange: Do not store Group::num_vehicle in the savegame, ↵frosch
but compute it like num_engines on load.
2011-08-03(svn r22713) -Feature: [NewGRF] Per vehicle custom cargo ageing period.michi_cc
2011-07-27(svn r22690) -Fix: [NewGRF] Aircrafts defined with IDs above the default ↵frosch
aircrafts always defaulted to passenger cargo.
2011-05-02(svn r22411) -Document: another bunch of bitsrubidium
2011-03-13(svn r22250) -Cleanup (r16378): Engines poolitems do not need a flag for ↵frosch
validness anymore. The pool knows that on its own.
2011-03-13(svn r22239) -Doc: Further engine doxyment additions.alberth
2011-02-08(svn r22025) -Fix: verify there is enough space in the pool when creating ↵smatz
new pool items while loading old savegames
2011-02-05(svn r21987) -Fix: Make news items, engine previews and AI preview events ↵frosch
deal with no longer existing Engine items after resetting the pool.
2011-02-05(svn r21986) -Codechange: Add helper function to test whether an engine is ↵frosch
still associated to a GRF.
2011-02-05(svn r21975) -Add: console command to reset the engine pool. It removes the ↵frosch
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-01-18(svn r21842) -Feature [FS#4393]: [NewGRF] Introduction dates/required types ↵rubidium
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(svn r21841) -Feature: [NewGRF] Allow to define other railtypes that should ↵rubidium
be introduced if a particular rail type is introduced, e.g. to make sure slow rail is introduced when fast rail gets introduced
2010-12-28(svn r21652) -Cleanup: one semicolon is enoughsmatz
2010-12-05(svn r21410) -Codechange: limit engine name by amount of characters, not bytesrubidium
2010-12-04(svn r21374) -Fix: Purchases lists were not invalidated when using ↵planetmaker
'resetengines'
2010-11-18(svn r21240) -Feature: [NewGRF] Implement action0 visual effect properties ↵rubidium
for ships and RVs (Hirundo)