summaryrefslogtreecommitdiff
path: root/src/misc.cpp
AgeCommit message (Collapse)Author
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-03-09Codechange: Make a merged k-d tree index of all viewport signsNiels Martin Hansen
2019-03-09Codechange: Make a k-d tree index of stationsNiels Martin Hansen
2019-03-09Codechange: Make a k-d tree index of townsNiels Martin Hansen
2019-02-07Fix #5654: (Re)initialise graph GUI on game (re)start (#7191)Gabda
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-06-09(svn r25354) -Add: link graph schedule and typedefs for LinkGraph and ↵fonsinchen
related classes
2012-04-17(svn r24132) -Change [FS#4713]: Improve randomness of tile order in the tile ↵michi_cc
loop. (monoid)
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
2011-12-19(svn r23604) -Add: initial support for GameScriptstruebrain
2011-11-03(svn r23084) -Codechange: get rid of a redundant variablerubidium
2011-07-29(svn r22693) -Fix [FS#4691]: The override managers were not reset in some ↵frosch
cases like creating a new scenario.
2011-02-19(svn r22116) -Codechange: use PoolBase::Clean() at more placessmatz
2011-01-05(svn r21733) -Codechange: Clarify the update owner legend code.terkhen
-Fix: Prevent crashes caused by deleted companies.
2011-01-04(svn r21730) -Fix (r21718): The smallmap owner legend would not be properly ↵terkhen
initialized in games without companies.
2010-08-28(svn r20670) -Add: support for action Frubidium
-Add: a window to select (NewGRF) objects
2010-08-22(svn r20591) -Codechange: make sure _date_fract is set when SetDate is ↵rubidium
called. Some places wouldn't reset _date_fract correctly at all
2010-08-18(svn r20539) -Codechange: make order backups more self-contained.rubidium
2010-08-13(svn r20482) -Codechange: move some object related information off the map ↵rubidium
and unify the relation objects have to towns
2010-07-19(svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be ↵rubidium
missed :)
2010-07-19(svn r20186) -Codechange: remove VARDEF from _realtime_tick and ↵rubidium
_rightclick_emulate
2010-03-15(svn r19426) -Fix: compilation with AIs disabledrubidium
2010-03-11(svn r19388) -Fix [FS#3666]: [NoAI] When reloading a savegame, an AI failing ↵rubidium
to compile could trigger (trying) to read the not yet loaded information of another AI via the AI Debug window and its "open with the most recently used AI" feature
2009-12-22(svn r18608) -Change: add the concept of music setsrubidium
2009-11-28(svn r18330) -Cleanup: remove some unneeded includesrubidium
2009-11-21(svn r18207) -Fix [FS#3324] (r11961): [NewGRF] When starting a new game the ↵rubidium
values of action D variable 13 were incorrect
2009-10-04(svn r17693) -Cleanup: remove some unneeded includesrubidium
2009-09-06(svn r17433) -Codechange: Store cumulated inflation in savegame and compute ↵frosch
all prices from that instead of storing all prices separately. Note: Savegame conversion computes the inflation from max loan. Prices from modified savegames will get lost. TTO savegames will also behave slightly different. -Change: NewGRF price modifiers now take effect everytime when loading NewGRFs instead of once on gamestart.
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-08-09(svn r17139) -Change: add the concept of sound setsrubidium
2009-08-06(svn r17097) -Fix [FS#3092] (r13256): make restart command work again and ↵rubidium
make the help show how it works and how it doesn't work
2009-08-06(svn r17084) -Codechange: _age_cargo_skip_counter is common to all vehicle typessmatz
2009-07-22(svn r16909) -Fix [FS#2996]: NewGRF stations would be triggering assertions ↵rubidium
all over the place when using the more advanced station types. -Change: make (rail) waypoints sub classes of 'base stations', make buoys waypoints and unify code between them where possible.
2009-07-16(svn r16852) -Codechange: use FOR_ALL_CARGOSPECS for iterating over all ↵smatz
valid CargoSpecs
2009-07-16(svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get()smatz
2009-07-01(svn r16714) -Codechange: use pool-like accessors for Subsidysmatz
2009-06-23(svn r16640) -Codechange: move roadstop stuff to separate filessmatz
2009-05-06(svn r16242) -Codechange: rework pausingrubidium
-Fix [FS#2864]: autopause and manual pausing conflict with eachother -Fix: new game + pause on new game + autopause make the game not unpause on the first join
2009-04-19(svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as ↵rubidium
they are basically the same thing
2009-01-31(svn r15299) -Cleanup: remove many redundant includessmatz
2009-01-23(svn r15246) -Fix [FS#2577]: close all windows *before* starting a new ↵rubidium
game/loading a game instead of doing that as one of the latest steps of loading the game. This caused, in some cases, the NewGRF settings to be reset when the game was already loaded resulting in instant desyncs when joining a network game
2009-01-19(svn r15151) -Fix: tile 0 can now be highlighted as error tileYexo
2009-01-12(svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to ↵truebrain
see. NoAI is an API (a framework) to build your own AIs in. See: http://wiki.openttd.org/wiki/index.php/AI:Main_Page With many thanks to: - glx and Rubidium for their syncing, feedback and hard work - Yexo for his feedback, patches, and AIs which tested the system very deep - Morloth for his feedback and patches - TJIP for hosting a challenge which kept NoAI on track - All AI authors for testing our AI API, and all other people who helped in one way or another -Remove: all old AIs and their cheats/hacks
2009-01-04(svn r14828) -Codechange: move most of save/load-specific code to separate filessmatz
2008-09-30(svn r14421) -Codechange: rename all player variables/types to company *or* ↵rubidium
client so it is immediatelly clear which one you are working with.
2008-09-13(svn r14313) -Codechange: Move functions dealing with the EngineRenew pool ↵frosch
to their own file.
2008-08-11(svn r14047) -Codechange: move chatmessage handling to the network directory ↵rubidium
as that's the only case chat messages are used. Furthermore remove any trace of chatmessages when compiling without network support.
2008-07-18(svn r13731) -Codechange: make a pool of the array of players.rubidium
2008-06-03(svn r13375) -Add: logging of actions that could possibly cause desyncs and ↵smatz
crashes to simplify debugging. See readme.txt for details
2008-05-29(svn r13325) -Codechange: split the client-side only settings from the ↵rubidium
settings stored in the savegame so there is no need to have a duplicate copy of it for new games.