Age | Commit message (Collapse) | Author |
|
|
|
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.
|
|
Previously the linkgraph was rebuilt before the viewport extents were finalized.
|
|
|
|
|
|
timers to work with milliseconds instead of ticks.
|
|
to zoom
|
|
a sound effect.
|
|
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
|
|
empty (MJP)
|
|
|
|
HotkeyList member.
|
|
|
|
|
|
after construction.
|
|
|
|
Eagle_rainbow)
|
|
|
|
various sources (including Eagle_rainbow, MinchinWeb)
|
|
dirty blocks/rectangles
|
|
understandable
|
|
|
|
with only values known in WindowFlags (and move out 2 timers to their own variable)
-Codechange: rename Window::flags4 to Window::flags
-Codechange: move some non-inline functions from .hpp to .cpp
|
|
|
|
several windows (based on patch by monoid)
|
|
variables to progress.cpp/h
|
|
|
|
feature in the help menu and enable bounding boxes only in conjunction with the newgrf developer tools
|
|
|
|
NetworkClientInfo::GetByClientID
|
|
|
|
OnInvalidateData().
|
|
process these events asynchronously before the next redraw. Calling window code directly from command scope uses wrong _current_company and might issue nested DoCommands() which interfer with the running command.
|
|
disabled a long time ago
|
|
|
|
zooming is also involved.
|
|
viewport scroll/zoom settings.
|
|
(with some video backends)
|
|
|
|
|
|
main menu
|
|
|
|
channel monitoring the server (dihedral)
|
|
away
|
|
caused crashes with very low resolutions
|
|
|
|
|
|
|
|
title screen
|
|
quit as the toolbar
|