summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
AgeCommit message (Collapse)Author
2018-10-11Fix #6898: Replace atoi() with strtoul()Miguel Horta
Normalize type and parsing of generation_seed across all files Add assert_compile() to ensure correct type
2018-07-19Feature: Framerate display window (#6822)Niels Martin Hansen
Frame rate and various game loop/graphics timing measurements and graphs. Accessible via the Help menu, and can print some stats in the console via the fps command.
2018-06-24Change: Modernise music control logic implementation (#6839)Niels Martin Hansen
Rewrite of almost the entire music control logic to a more modern style, hopefully also easier to understand. The old playlist handling made it look like arcane magic, which it doesn't have to be. - Playlists are now stored in std::vector of objects instead of arrays of bytes with magic sentinel values, that need to be rotated around all the time. Position in playlist is stored as a simple index. - The theme song is now reserved for the title screen, it doesn't play on any of the standard playlists, but is still available for use on custom playlists. - When the player enters/leaves the game from the main menu, the music always restarts. - Playback state (playing or not) is kept even if music becomes unavailable due to an empty playlist (or an empty music set), so it can restart immediately if music becomes available again. - The shuffle algorithm was changed to a standard Fisher-Yates. - Possibly better behavior when editing a custom playlist while it's playing. - Custom playlists should be compatible. - Framework for supporting custom playlists with songs from multiple music sets.
2018-04-29Remove: WinCE supportPatric Stout
2018-04-29Remove: PSP supportPatric Stout
2018-04-21Cleanup: Use new filename for README file. (#6738)Ricardo N Feliciano
2017-01-14(svn r27732) -Change: Turn the message about 'missing baseset sprites' from ↵frosch
a popup into a static message that only shows in non-release versions, just like the 'missing translations' message.
2016-09-04(svn r27653) -Fix(r27647): Rename FileOperation enum and values to ↵alberth
SaveLoadOperation to avoid nameclash with windows compiler toolkit.
2016-09-04(svn r27651) -Codechange: Introduce methods for setting the name and title ↵alberth
of _file_to_saveload.
2016-09-04(svn r27650) -Codechange: Replace SaveOrLoadMode by FileOperation and ↵alberth
DetailedFileType.
2016-09-04(svn r27647) -Codechange: Introduce file operations, and use it to replace ↵alberth
most of SaveLoadDialogMode
2016-09-04(svn r27640) -Codechange: Remove another use of _saveload_mode in the ↵alberth
loading code.
2016-09-04(svn r27638) -Codechange: Move FiosType enum, move and rename SetFiosType ↵alberth
function.
2014-09-16(svn r26828) -Fix: memory leak when passing -c multiple timesrubidium
2014-08-13(svn r26729) -Feature: Warn about missing industries after generating a map.alberth
2014-04-28(svn r26538) -Codechange: remove double accounting of the driversrubidium
2014-04-27(svn r26522) -Add: A config-file-only setting to disable usage of 8bpp video ↵frosch
modes. -Remove: [win32] fullscreen_bpp setting, which is replaced by above setting. -Change: Disable usage of 8bpp blitters and video modes by default. Many modern OS and hardware cause issues with those.
2014-04-25(svn r26509) -Codechange: replace strdup with stredup (the latter ensures ↵rubidium
the return is not NULL)
2014-04-24(svn r26506) -Codechange: replace most of vsnprintf with vseprintfrubidium
2014-04-23(svn r26486) -Codechange: replace a number of snprintfs with seprintfrubidium
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
2014-02-23(svn r26371) -Fix [FS#5831]: Calling DoCommandP during the gameloop cleared ↵frosch
pending persistent storage changes.
2014-02-23(svn r26369) -Fix-ish: Do not run scripts during command replay.frosch
2014-02-09(svn r26326) -Fix [FS#5871]: when autosaving the message about a save ↵rubidium
already happening could be shown, even though the code's intention was to not show it (MJP)
2014-02-07(svn r26317) -Fix [FS#5897]: Check whether NewGRF change vehicle capacity ↵frosch
when they are not supposed to, and truncate cargo appropiately if they are allowed to.
2014-01-02(svn r26209) -Codechange: remove some template magic and simplify some coderubidium
2014-01-02(svn r26205) -Feature: SSE 4.1 sprite sorter, improving the sorting ↵rubidium
performance significantly (MJP) For example with GCC 4.8, x86_64 Linux, Intel i5-3337U this patch improves the performance of Pile, Treham and Hamac test save games by about 10% in over-all run time at fast forward at 1920x1080 when zoomed out and when trees are not disabled.
2013-12-23(svn r26174) -Codechange: Rename BaseStorageArray to BasePersistentStorageArrayfrosch
2013-11-25(svn r26107) -Codechange/cleanup: remove some coding bloat and simplify the ↵rubidium
driver factory instatiations
2013-11-25(svn r26099) -Codechange: make NewGRF scanner management slightly easierrubidium
2013-11-25(svn r26098) -Fix: close the log file when OpenTTD was forked and finally closedrubidium
2013-11-25(svn r26097) -Fix: another minor memory leak (when pressing cancel in the ↵rubidium
bootstrap window)
2013-11-24(svn r26091) -Fix (r26089): double frees... woospierubidium
2013-11-24(svn r26089) -Fix: a number of minor memory leaksrubidium
2013-07-06(svn r25570) -Add: cache for ParagraphLayouts.frosch
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-06-28(svn r25506) -Document: a function, and name it slightly betterrubidium
2013-06-09(svn r25354) -Add: link graph schedule and typedefs for LinkGraph and ↵fonsinchen
related classes
2013-05-26(svn r25291) -Add: WindowDesc ability to load and store information in a ↵frosch
config file.
2013-02-05(svn r24974) -Fix [FS#5279]: Honour pause_on_newgame setting when running as ↵peter1138
a dedicated server.
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-12-05(svn r24790) -Remove: Classic difficulty profiles.frosch
2012-11-12(svn r24716) -Feature(ette): Reset engine pool when starting a scenario.frosch
2012-08-20(svn r24485) -Fix: Clarify description of command line option -nplanetmaker
2012-08-18(svn r24482) -Fix [FS#5232] (r24180): Do not call ↵frosch
RebuildSubsidisedSourceAndDestinationCache() before subsidy savegame conversion is finished.
2012-07-08(svn r24388) -Fix [FS#5233]: Do not consider not finding a particular base ↵frosch
set critical; just load a different one and display an in-game error later on.
2012-04-25(svn r24180) -Codechange/feature-ish: add cache checker for the town's cacherubidium
2012-04-19(svn r24155) -Fix: the music volume was set too early during startup; at a ↵rubidium
moment the configuration file wasn't read yet
2012-04-07(svn r24099) -Add: Output list of -d option facilities with in the help text.alberth
2012-02-18(svn r23963) -Fix [FS#5072]: do not look for missing sprites twice during ↵rubidium
startup