Commit Graph

477 Commits

Author SHA1 Message Date
peter1138
317f69c152 Codechange: Use override specifier in Window-derived classes. 2019-03-24 16:10:04 +01:00
peter1138
aafce47596 Codechange: Use override specifier for DropDownListItem classes. 2019-03-24 16:10:04 +01:00
Henry Wilson
af7d9020a1 Codechange: Use override specifer for overriding member declarations
This is a C++11 feature that allows the compiler to check that a virtual
member declaration overrides a base-class member with the same signature.

Also src/blitter/32bpp_anim_sse4.hpp +38 is no longer erroneously marked
as virtual despite being a template.
2019-03-24 16:10:04 +01:00
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.
2019-03-20 19:24:55 +01:00
peter1138
9cb84a1bad Feature: Add road icon to road construction drop down list. 2019-03-10 10:31:37 +00:00
peter1138
fb35cb5ed2 Remove: Unnecessary virtual destructors on drop down list items. 2019-03-10 09:20:11 +00:00
peter1138
811bf22620 Codechange: Use Colours type instead of byte. 2019-03-10 09:20:11 +00:00
Pavel Stupnikov
0f87b43509 Merge 1.9.0-beta3 2019-02-25 18:47:08 +03:00
Pavel Stupnikov
7c38d218f1 Update to 1.9.0-beta3
--HG--
branch : openttd
2019-02-25 16:08:46 +03:00
Patric Stout
91eee793e1 Fix c3dbe836b4: also compile without ENABLE_NETWORK defined again 2019-02-24 01:11:08 +01:00
glx
aadcf40b9b Fix 1585eb1a3: wrong default selection for goals and story book 2019-02-17 16:04:52 +01:00
Joan Josep
548ec05a48 Add: News menu entry and shortcut for deleting all messages. (#7240) 2019-02-16 23:15:58 +00:00
glx
1585eb1a3e Fix: use more descriptive "spectator" strings for story book and goal dropdown menus 2019-02-16 22:19:16 +01:00
Pavel Stupnikov
6e2a54355a Merge 1.9.0-beta2 2019-02-14 00:47:22 +03:00
Pavel Stupnikov
2bda8d4f34 Update to OpenTTD 1.9.0-beta2
--HG--
branch : openttd
2019-02-13 15:17:23 +03:00
glx
8e7fe3973f Add: CompanyCtrlAction enum for CMD_COMPANY_CTRL actions 2019-02-04 21:08:36 +01:00
PeterN
c3dbe836b4 Add: Draw network password indicator lock in company drop down list. (#7079) 2019-01-22 12:42:52 +00:00
Peter Nelson
806e7d25dd Change: Use GUITimer class instead of bare int/uints. 2019-01-11 11:56:21 +00:00
Peter Nelson
2a8fa5fef9 Change: Split up Window::OnTick into OnGameTick and OnRealtimeTick. Adjust timers to work with milliseconds instead of ticks. 2019-01-11 11:56:21 +00:00
Niels Martin Hansen
2a868b9f3b Feature: Framerate display window (#6822)
Frame rate and various game loop/graphics timing measurements and graphs. Accessible via the Help menu, and can print some stats in the console via the fps command.
2018-07-19 21:17:07 +02:00
Joan Josep
944f785be8 Fix: Spelling errors (#6769) 2018-04-30 18:52:32 +02:00
Pavel Stupnikov
cb5bd6c408 Fix HQ placement hotkey 2017-04-14 16:02:18 +03:00
Pavel Stupnikov
2a02067397 Merge 1.7.0-RC1 2017-04-09 22:34:33 +03:00
Pavel Stupnikov
6b9e7d8ca8 Backport 1.7 toolbar refactoring 2017-04-09 00:37:39 +03:00
Pavel Stupnikov
3433ae02f4 Update openttd to 1.7.0-RC1
--HG--
branch : openttd
2017-03-12 16:41:12 +03:00
frosch
30574a7cad (svn r27671) -Codechange: Replace magic numbers in the toolbar with the already existing WID_TN_xxx. (Wolf01) 2016-10-30 17:36:57 +00:00
alberth
0adfb1ac6f (svn r27653) -Fix(r27647): Rename FileOperation enum and values to SaveLoadOperation to avoid nameclash with windows compiler toolkit. 2016-09-04 16:06:50 +00:00
alberth
88bdf482c0 (svn r27648) -Codechange: Remove remaining _saveload_mode usage. 2016-09-04 12:56:56 +00:00
frosch
ca6493f2e6 (svn r27626) -Codechange: Do not use the cursor sprite as PlaceObject status in the main toolbar. 2016-08-15 18:32:25 +00:00
Pavel Stupnikov
e3c4c92d1e allow "player"s to create companies, disable resetme ban (both fix registering 6/6 error) 2016-02-11 03:04:28 +03:00
Pavel Stupnikov
d6c3955c8c center watch button sprite in toolbar 2015-11-13 03:42:13 +03:00
Pavel Stupnikov
b999676431 commands fix, landinfo assert fix 2015-03-31 20:13:49 +03:00
Pavel Stupnikov
1c6fedf7a7 land info tool hotkey 2015-03-27 11:55:51 +03:00
Pavel Stupnikov
2adcbdd2f3 client dropdown proper lock rendering 2015-03-26 03:55:36 +03:00
Pavel Stupnikov
e7047bd71b allow land info tool to work in measurement mode (dragdrop) 2015-03-23 22:42:57 +03:00
Pavel Stupnikov
44ef29dba9 make land info work in tooltip mode 2015-03-23 21:27:50 +03:00
Pavel Stupnikov
42a13099bf allow fund industry window to be opened while spectating 2015-03-21 04:51:27 +03:00
Pavel Stupnikov
04971ed244 hide measurement tool for now
--HG--
branch : novattd150
2015-03-19 18:03:12 +03:00
Pavel Stupnikov
46e74a9a05 openttd 1.5-rc1
--HG--
branch : openttd
2015-03-19 14:33:13 +03:00
Pavel Stupnikov
e48d2d58e0 latest novapolis client for 1.5
--HG--
branch : novattd150
2015-03-16 03:20:50 +03:00
frosch
780e595933 (svn r27178) -Fix [FS#5969]: Data race due to lazy initialisation of objects. 2015-03-07 18:27:01 +00:00
Pavel Stupnikov
d201932121 openttd updated to 1.5.0-beta2
--HG--
branch : openttd
2015-03-01 00:30:53 +03:00
frosch
64e943d32a (svn r27150) -Fix (r27146): Forgot scenario toolbar. 2015-02-14 21:22:47 +00:00
frosch
e113f5e4a1 (svn r27146) -Fix: Make statusbar and chat-entry window use the same width as the toolbar. Otherwise they lack a size definition. 2015-02-13 21:13:45 +00:00
frosch
33f4f0b464 (svn r26986) -Change: Rename 'Advanced Settings' to just 'Settings'. 2014-10-09 21:16:29 +00:00
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 2014-04-23 20:13:33 +00:00
Pavel Stupnikov
09818a1493 openttd 1.4 rc1
--HG--
branch : openttd
2014-03-25 15:18:09 +04:00
frosch
167f232623 (svn r26314) -Fix [FS#5899]: The giant-screenshot confirmation window only triggered for rediculously big screenshots, for ludicrously big ones. 2014-02-06 22:24:02 +00:00
rubidium
f480c5a623 (svn r26217) -Change: blitter autoselection based on full animation state, so the non-animated optimizations can actually be used in an easy manner (based on patch by MJP) 2014-01-03 08:51:49 +00:00
rubidium
83eeba28b7 (svn r26086) -Codechange: use AutoDeleteSmallVector instead std::list for dropdowns 2013-11-24 14:46:26 +00:00