summaryrefslogtreecommitdiff
path: root/src/video/dedicated_v.cpp
AgeCommit message (Collapse)Author
2020-12-27Codechange: Replace assert_compile macro with static_assertCharles Pigott
2020-05-21Codechange: Use std::string in the driver and blitter selection code.Michael Lutz
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-08-06Cleanup: Remove duplicate thread.h include (#7683)nikolas
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-04-06Codechange: Use platform independent C++11 function for sleeping on a thread.Michael Lutz
2019-04-06Codechange: Replace custom thread code with C++11 thread objects.Michael Lutz
We assume a conforming C++11 compiler environment that has a valid <thread>-header. Failure to run a real thread is handled gracefully.
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-05Remove: BeOS support (deprecated by Haiku)Patric Stout
In 10 years there is no commit to change how BeOS works, and we have no active maintainer for it. It is unlikely it works in its current state (but not impossible). With the arrival of SDL2 (and removal of SDL), BeOS is no longer support. SDL2 suggests to use Haiku instead of BeOS.
2018-12-27Fix: [Win32] WIN32 may not be defined, always prefer the compiler predefined ↵glx
macro _WIN32
2018-04-29Remove: WinCE supportPatric Stout
2018-04-29Remove: PSP supportPatric Stout
2016-10-30(svn r27673) -Add: [Win32] Thread names for windows debuggers.michi_cc
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 r27650) -Codechange: Replace SaveOrLoadMode by FileOperation and ↵alberth
DetailedFileType.
2014-04-24(svn r26496) -Fix (r1547): Reading console input on dedicated server relied ↵frosch
on unspecified behaviour.
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-04-08(svn r26449) -Add: Allow more sound sleep for dedicated servers when there's ↵planetmaker
nothing to do and nobody paying attention
2014-01-02(svn r26209) -Codechange: remove some template magic and simplify some coderubidium
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2011-12-10(svn r23470) -Codechange: move declaration of SwitchToMode to a header ↵rubidium
instead of declaring it in 6 other files
2011-11-04(svn r23119) -Fix: [Win32] Don't show a crash/assertion message box for a ↵michi_cc
GUI-less video driver.
2011-05-28(svn r22512) -Add: Save heightmap.alberth
2011-02-25(svn r22144) -Codechange: Unify 'while (true)' to 'for (;;)'alberth
2010-12-05(svn r21396) -Codechange: rename SafeSaveOrLoad to SaveLoad (it only did ↵rubidium
load), and add support for (safe) loading with a LoadFilter
2010-11-19(svn r21252) -Codechange: introduce a constant for the number of ↵rubidium
milliseconds per game tick and use it
2010-09-10(svn r20783) -Change/Fix: do autosave-on-exit as well when using kill/CTRL-C ↵rubidium
to terminate a dedicated OpenTTD
2010-08-01(svn r20286) -Codechange: Unify end of doxygen comments.frosch
2010-07-19(svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be ↵rubidium
missed :)
2010-07-19(svn r20183) -Codechange: make _do_autosave and _dedicated_forks not use ↵rubidium
VARDEF and put them in a more logical location
2010-06-05(svn r19933) -Fix [FS#3804]: Keep _current_company and _local_company in ↵frosch
sync during GUI operation.
2010-04-09(svn r19593) -Codechange: improve loading/executing the desync logsrubidium
2010-01-15(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, ↵rubidium
if a header require a header make it include that header
2010-01-12(svn r18792) -Fix [FS#3522] (r18709): crash when using the 32bpp blitter ↵rubidium
with a dedicated server
2009-12-19(svn r18545) -Fix [FS#3292]: Assign '_screen.dst_ptr' as soon as it is ↵frosch
allocated.
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-08-20(svn r17228) -Codechange: some coding style fixesrubidium
2009-05-19(svn r16360) -Codechange: don't use _network_playas as a 'second' ↵rubidium
_local_company, but only as a storage location for the company you want to join in MP.
2009-04-10(svn r16024) -Codechange: harden string copying on places where it's possiblerubidium
2009-03-15(svn r15718) -Cleanup: apply some comment coding style on the rest of the ↵rubidium
sources too
2009-03-06(svn r15626) -Fix [FS#2698]: UTF8 string handling could cause buffer overruns.rubidium
2009-02-25(svn r15576) -Codechange: rename SwitchModes to SwitchMode and don't ↵yexo
hardcode the values for that enum.
2009-02-25(svn r15575) -Codechange: Rename GameModes to GameMode and store _game_mode ↵yexo
as GameMode instead of as byte.
2009-02-21(svn r15543) -Change: allow the default debug level of 6 for a dedicated ↵rubidium
server to be overriden by -d (if used after -D).
2009-01-31(svn r15299) -Cleanup: remove many redundant includessmatz
2009-01-20(svn r15176) -Fix [FS#2554]: querying the content server could free when ↵rubidium
resolving the hostname or connecting takes long/is timing out.
2008-09-30(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.rubidium
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-29(svn r14414) -Fix: replace instances of strncpy with strecpy as strncpy ↵rubidium
doesn't guarantee the resulting string is '\0'-terminated.
2008-08-31(svn r14199) -Codechange: split fileio.h into fileio_type.h and ↵rubidium
fileio_func.h so not everything that includes saveload.h needs to include everything else too.