summaryrefslogtreecommitdiff
path: root/src/console.cpp
AgeCommit message (Collapse)Author
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.
2018-10-31Doc: Lots and lots of doxymentation fixesCharles Pigott
2017-08-13(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)frosch
2017-06-22(svn r27884) -Fix: Console command parser failed when the command had many ↵frosch
parameters, and also did not print any error messages about it.
2017-06-22(svn r27883) -Fix [FS#6576]: Console command parser passed invalid strings ↵frosch
to the debug output, if command lines had many parameters.
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 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-01-28(svn r26284) -Fix: Comparison of NULL and char 0. (lbalbalba)frosch
2013-11-25(svn r26100) -Fix: possible buffer overflow in console handling of aliasesrubidium
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-01-03(svn r23741) -Revert (r23740): the few parts that the Windows / non-network ↵rubidium
compiles stumble on
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
2011-01-03(svn r21701) -Codechange: ConsoleColour = TextColour, so make it that way ↵rubidium
and remove some unneeded casts
2011-01-01(svn r21688) -Codechange: verify the colour code passed to ↵smatz
IConsolePrint()/IConsolePrintF() is valid
2011-01-01(svn r21686) -Cleanup: remove unused constants and comment used onessmatz
2010-10-17(svn r20977) -Fix (r20975): compilation didn't get to the link stage if you, ↵rubidium
or config.lib, decided you don't need network support
2010-10-17(svn r20975) -Add: logging of console output for remote admins (dihedral)rubidium
2010-10-17(svn r20974) -Add: remote console (rcon) for remote admins (dihedral)rubidium
2010-08-16(svn r20515) -Feature: ignore _ in console command names so there is no ↵rubidium
"inconsistent" behaviour w.r.t. underscores anymore without breaking backwards compatability greatly
2010-08-01(svn r20280) -Fix: indentation of some switch casesrubidium
2010-07-29(svn r20239) -Doc: Give a common name to all fall throughs (FALL THROUGH).terkhen
2010-06-26(svn r20021) -Codechange: Move variable declarations.alberth
2010-05-20(svn r19862) -Change: allow "" and " " as arguments meaning nothing and ↵rubidium
space for the in-game console
2010-03-24(svn r19514) -Codechange: Allow console hooks to deny existance of commands.frosch
2010-03-24(svn r19512) -Fix (r19511): using the 'alias' console command it's possible ↵yexo
to create a duplicate alias name
2010-03-24(svn r19511) -Codechange: use a template for IConsoleAddSortedyexo
2010-02-25(svn r19252) -Fix [FS#3639]: writing (console) output to a file failed on ↵rubidium
Windows if the date would not be logged.
2010-02-10(svn r19093) -Codechange: do not prefix console debug output with 'condbg', ↵smatz
[console] is enough
2010-02-10(svn r19085) -Codechange: simplify hooking of console commandssmatz
2010-02-10(svn r19083) -Cleanup: remove support for modifying variables from consolesmatz
2010-02-10(svn r19082) -Codechange: make 'developer' a regular settingsmatz
2010-02-10(svn r19079) -Codechange: use _debug_console_level instead of ↵smatz
_stdlib_con_developer
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
2009-11-09(svn r18028) -Codechange: unglobalise some functionsrubidium
2009-10-04(svn r17701) -Codechange: don't start line with a space if it's not inside ↵smatz
comment
2009-10-04(svn r17693) -Cleanup: remove some unneeded includesrubidium
2009-09-09(svn r17488) -Feature [FS#2339]: add the date to all logging in the (real, ↵rubidium
not in-game) console if show_date_in_console is set. For dedicated server binaries the default is 'on', for the rest it is 'off'.
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-05-10(svn r16269) -Codechange: use gcc's ability to check parameters sent to ↵smatz
printf-like functions -Fix: wrong number of parameters or wrong parameter types sent to printf-like functions at several places
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-09(svn r15428) -Codechange: consistently use colour instead of having both ↵rubidium
color and colour.
2009-01-31(svn r15299) -Cleanup: remove many redundant includessmatz
2009-01-10(svn r14949) -Cleanup: pointer coding stylerubidium
2008-12-22(svn r14709) -Codechange: make a clearer distinction between 'unique' client ↵rubidium
identification ids and the indices into the clients/client info arrays.
2008-10-02(svn r14431) -Fix (r14414): alias parameter "evaluation" would remove the ↵rubidium
last byte of the parameters.
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.