summaryrefslogtreecommitdiff
path: root/src/game/game_core.cpp
AgeCommit message (Collapse)Author
2021-06-13Codechange: convert printf DEBUG statements to fmt Debug statementsrubidium42
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-04-29Codechange: Remove Company/OwnerByte typesCharles Pigott
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-20Remove: ENABLE_NETWORK switchPatric Stout
This switch has been a pain for years. Often disabling broke compilation, as no developer compiles OpenTTD without, neither do any of our official binaries. Additionaly, it has grown so hugely in our codebase, that it clearly shows that the current solution was a poor one. 350+ instances of "#ifdef ENABLE_NETWORK" were in the code, of which only ~30 in the networking code itself. The rest were all around the code to do the right thing, from GUI to NewGRF. A more proper solution would be to stub all the functions, and make sure the rest of the code can simply assume network is available. This was also partially done, and most variables were correct if networking was disabled. Despite that, often the #ifdefs were still used. With the recent removal of DOS, there is also no platform anymore which we support where networking isn't working out-of-the-box. All in all, it is time to remove the ENABLE_NETWORK switch. No replacement is planned, but if you feel we really need this option, we welcome any Pull Request which implements this in a way that doesn't crawl through the code like this diff shows we used to.
2019-02-23Add: Show performance of AI and GS in framerate windowNiels Martin Hansen
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-12(svn r25592) -Fix [FS#5644]: Changing the script difficulty level in-game ↵rubidium
would also change the settings using the default even though they were not allowed to change in-game
2013-03-22(svn r25114) -Fix [FS#5509]: GS lang files did not work, when inside a tar.frosch
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-09-21(svn r24537) -Feature: Scripts can be suspended even if the game is still ↵zuu
progressing, thus break-on-log now works also for Game Scripts.
2012-08-20(svn r24487) -Codechange [FS#5236]: make several DoesContentExist return the ↵yexo
path instead of a boolean (LordAro)
2012-04-09(svn r24108) -Fix [FS#5142]: When starting GS or AI, always use the settings ↵frosch
of the game, not the new-game settings.
2012-01-03(svn r23747) -Fix (r23746): forgot one more casetruebrain
2012-01-03(svn r23746) -Fix: also set 'info' to NULL if 'instance' dies (for both AI ↵truebrain
and GS); avoids invalid memory reads
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
2012-01-02(svn r23718) -Fix [FS#4936]: rescanai caused crash when the AI settings of ↵rubidium
an AI was opened
2011-12-19(svn r23634) -Add: support language files for GameScript (Rubidium)truebrain
2011-12-19(svn r23632) -Add: GSCompanyMode, to change company in GameScriptstruebrain
2011-12-19(svn r23622) -Add: a set of events to trigger in a GameScripttruebrain
2011-12-19(svn r23612) -Add: allow importing libraries in the same way as AI does, ↵truebrain
only with GS prefix (and in game/library)
2011-12-19(svn r23609) -Add: save/load all GameScript related materialtruebrain
2011-12-19(svn r23606) -Add: GameScanner, to auto-detect game scripts, and wire it in ↵truebrain
the console
2011-12-19(svn r23604) -Add: initial support for GameScriptstruebrain