Henry Wilson
bfd79e59dc
Codechange: Replace SmallVector::Clear() with std::vector::clear()
6 years ago
Patric Stout
e3c639a09f
Remove: ENABLE_NETWORK switch
...
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.
6 years ago
Peter Nelson
b1e40b6b56
Fix #7151 : Hang when concurrently starting AIs in multiplayer, or with shift pressed.
6 years ago
PeterN
23960d0f2c
Feature: Group liveries, and livery window usability enhancements. ( #7108 )
...
* Change: Replace checkbox in livery selection window with Default option in drop down selection.
This reduces clutter in the UI and allows for primary/secondary colours to independently follow the default scheme if desired.
* Feature: Add vehicle group liveries.
6 years ago
Charles Pigott
f5b1115039
Doc: Lots and lots of doxymentation fixes
6 years ago
Pavel Stupnikov
8e4bce58ea
Feature: GS methods to scroll viewport for players ( #6745 )
7 years ago
alberth
f72ad87540
(svn r26802) -Add: Command to set visibility of an engine for a company (based on patch by Juanjo).
10 years ago
frosch
b996c24387
(svn r26716) -Fix: CMD_CLEAR_ORDER_BACKUP should not be suppressed by pause modes.
10 years ago
rubidium
0463dbdc9e
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
11 years ago
peter1138
567d0ff3a7
(svn r26450) -Feature: Hierarchical vehicle subgroups.
11 years ago
frosch
a32d18cbb9
(svn r26371) -Fix [FS#5831]: Calling DoCommandP during the gameloop cleared pending persistent storage changes.
11 years ago
zuu
1dbd59e6ab
(svn r26306) -Add: [nogo] More story APIs: RemovePageElement, GetCompany, GetDate, SetDate
11 years ago
zuu
425197a19c
(svn r26299) -Fix: [nogo] CmdRemoveStoryPage does not use the string parameter
11 years ago
frosch
ba1779b978
(svn r26241) -Codechange: Remember the GRFFile which filled the TextRefStack in the TextRefStack.
11 years ago
frosch
eca86d1baf
(svn r26174) -Codechange: Rename BaseStorageArray to BasePersistentStorageArray
11 years ago
rubidium
168fa4129d
(svn r26092) -Fix [FS#5818]: prevent scripts from crashing OpenTTD when they send text with command codes to user editable texts such as sign and station names
11 years ago
zuu
ab69c6c2a0
(svn r25788) -Feature: [Script] Game Scripts can now charge fees and give money to companies
11 years ago
zuu
67ab3108d6
(svn r25785) -Feature: [Script] Allow AIs and GS to found towns. Allow GS to rename towns
11 years ago
rubidium
8463335b00
(svn r25487) -Fix: do not allow control codes in names of things (signs, vehicles, towns, stations, etc), so they have a known maximum fixed size and are, by definition, the same for everyone
11 years ago
frosch
c73219f9e5
(svn r25394) -Fix: Restrict renaming engines to the server, just like renaming towns.
11 years ago
zuu
33ad9774fb
(svn r25352) -Feature: GameScript API for selecting a story page to view
11 years ago
zuu
9aa1bf0264
(svn r25342) -Add: StoryPage data structures and GS API
11 years ago
zuu
a4cddc3e08
(svn r25296) -Feature: Goals can now have a progress text and/or be marked as completed.
12 years ago
planetmaker
c24374f99c
(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
12 years ago
zuu
0826994821
(svn r24623) -Feature: Allow GameScripts to construct and prospect industries without having a sponsor
12 years ago
michi_cc
aa47d6c7f2
(svn r24127) -Feature [FS#1497]: Allow closing airports for incoming aircraft. (Based on patch by cirdan)
13 years ago
rubidium
48717ade9c
(svn r23800) -Codechange: also desync log failed commands
13 years ago
rubidium
1a0fe0e8c6
(svn r23783) -Cleanup: remove ancient but not needed command flag
13 years ago
rubidium
6d6be50ae0
(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files
13 years ago
truebrain
34d90da509
(svn r23731) -Add: add GSGoal::Question(), to ask a question to a(ll) company(ies). It can contain random text, and at most 3 buttons from a collection of 17
13 years ago
truebrain
102f811d02
(svn r23636) -Add: introduce ScriptText in parameters where it can be used
13 years ago
truebrain
3ada3b9cc5
(svn r23630) -Add: a Goal GUI to show your current goals
13 years ago
truebrain
084f4e6aac
(svn r23629) -Add: allow ScriptRoad::BuildRoad, ScriptBridge::BuildBridge (for roads) and ScriptTunnel:BuildTunnel (for roads) to work for GameScript
13 years ago
truebrain
5858c53420
(svn r23628) -Add: ScriptSubsidy::Create, to create subsidies (GameScript only)
13 years ago
truebrain
e0ffe4faf2
(svn r23627) -Add: ScriptNews::Create, to create custom news messages (GameScript only)
13 years ago
truebrain
ad48ab9237
(svn r23626) -Add: ScriptTown::SetText, which adds custom text to the Town GUI
13 years ago
truebrain
e7cd301d3c
(svn r23621) -Add: allow manipulation of signs via GameScripts
13 years ago
truebrain
afcf07ac8a
(svn r23620) -Add: ScriptTown::SetCargoGoal and ScriptTown::SetGrowthRate (GameScript only)
13 years ago
truebrain
5ff98b45c1
(svn r23617) -Add: ScriptTown::ExpandTown, to grow a town (GameScript only)
13 years ago
truebrain
83f2785f54
(svn r23611) -Add: run the begin of the script already while generating, and don't sleep on DoCommand while doing so
13 years ago
truebrain
577fe0238e
(svn r23602) -Add: support for DEITY commands, commands where no real company was involved in (Rubidium)
13 years ago
rubidium
58423b26d1
(svn r23474) -Codechange: move the declaration error related functions to error.h
13 years ago
rubidium
f600429424
(svn r23215) -Codechange: stricter type safety for CommandFlags
13 years ago
rubidium
7757a2ed40
(svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ functions if they return the Z in pixels (like TilePixelHeight)
13 years ago
yexo
655cee276c
(svn r22996) -Fix: make sure temporary storage is cleared before test and exec runs for DoCommands so NewGRF callbacks can't change the result between the runs
13 years ago
rubidium
37415b9cf7
(svn r22785) -Codechange: rename IsGeneratingWorld to HasModalProgress
13 years ago
frosch
2a55273291
(svn r22629) -Fix [FS#4599]: Remove all usages of the ErrorRefStack. It was continuously overwritten by e.g. industry prospection without closing the old error window; also StopTextRefStackUsage() was not called for errors returned by commands (which caused FS#4599). Now return in the CommandCost result whether the textref stack needs to be used, and store a copy of the stack values in the error window just like for the normal string parameters.
13 years ago
rubidium
68ace1b79b
(svn r22016) -Fix [FS#4479]: when paused and having the allowed actions while paused setting on "no actions" cheating money would fail
14 years ago
rubidium
3745ff7338
(svn r22015) -Codechange: move yet another pair of methods from functions.h
14 years ago
rubidium
7eba2bf4d3
(svn r21890) -Cleanup: remove some unneeded includes
14 years ago