Jonathan G Rennison
674732cd68
Merge: Codechange: Use null pointer literal instead of the NULL macro
2019-04-11 18:14:13 +01:00
Henry Wilson
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
2019-04-10 23:22:20 +02:00
Jonathan G Rennison
ba34ec7ade
Merge branch 'master' into jgrpp
...
Replace build and refit, and group collapse implementations
Fix template creation build and refit
# Conflicts:
# Makefile.bundle.in
# config.lib
# src/animated_tile.cpp
# src/blitter/32bpp_anim.hpp
# src/blitter/32bpp_base.hpp
# src/blitter/8bpp_base.hpp
# src/blitter/null.hpp
# src/build_vehicle_gui.cpp
# src/command.cpp
# src/command_func.h
# src/console_gui.cpp
# src/core/smallstack_type.hpp
# src/date.cpp
# src/debug.cpp
# src/genworld_gui.cpp
# src/ground_vehicle.hpp
# src/group_gui.cpp
# src/lang/korean.txt
# src/linkgraph/linkgraph_gui.h
# src/main_gui.cpp
# src/misc_gui.cpp
# src/network/core/game.h
# src/network/core/packet.cpp
# src/network/core/udp.cpp
# src/network/core/udp.h
# src/network/network_content.cpp
# src/network/network_type.h
# src/network/network_udp.cpp
# src/newgrf_house.h
# src/openttd.cpp
# src/order_cmd.cpp
# src/order_gui.cpp
# src/os/unix/crashlog_unix.cpp
# src/os/windows/crashlog_win.cpp
# src/osk_gui.cpp
# src/pathfinder/opf/opf_ship.cpp
# src/rail_cmd.cpp
# src/rail_gui.cpp
# src/saveload/saveload.cpp
# src/settings.cpp
# src/settings_gui.cpp
# src/smallmap_gui.h
# src/station_base.h
# src/station_cmd.cpp
# src/table/gameopt_settings.ini
# src/table/newgrf_debug_data.h
# src/table/settings.ini
# src/timetable_gui.cpp
# src/toolbar_gui.cpp
# src/train_gui.cpp
# src/vehicle.cpp
# src/vehicle_gui.cpp
# src/vehiclelist.cpp
# src/viewport.cpp
# src/widgets/dropdown.cpp
# src/window_gui.h
2019-03-27 18:12:04 +00: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
Jonathan G Rennison
5e6d283463
Merge branch 'master' into jgrpp
...
Remove the viewport sign cache as this is now superseded by the kd tree
implementation
# Conflicts:
# src/crashlog.cpp
# src/lang/english.txt
# src/misc.cpp
# src/pathfinder/follow_track.hpp
# src/pbs.cpp
# src/rail_cmd.cpp
# src/saveload/vehicle_sl.cpp
# src/settings.cpp
# src/settings_gui.cpp
# src/ship_cmd.cpp
# src/station.cpp
# src/station_base.h
# src/station_cmd.cpp
# src/table/settings.ini
# src/thread/thread_morphos.cpp
# src/town_cmd.cpp
# src/train_cmd.cpp
# src/viewport.cpp
# src/waypoint.cpp
2019-03-13 03:38:26 +00:00
Patric Stout
7784d77713
Remove: MorphOS / AmigaOS support
...
In 10 years there is no commit to change how MorphOS 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), MorphOS is no longer
support. There is an SDL2 port for MorphOS, but it is not maintained
by upstream SDL2, and nobody can currently test it out.
If anyone wants to re-add MorphOS, please do (revert this patch,
fix the problems, and create a Pull Request). If you need any help
doing so, let us know! It is not that we don't like MorphOS, it is
that we don't have anyone fixing the problems :(
2019-03-05 22:03:00 +01:00
Jonathan G Rennison
6342099c4d
Allow 256 NewGRFs in multiplayer
...
Add extended network format for server info
Add general UDP packet fragmentation system
Fix map dimensions >= 64k
Increase length of server revision string
Maintain backwards compatibility with trunk for advertisement/server listing
2018-05-12 09:11:41 +01:00
rubidium
2be4215f43
(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
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
rubidium
32e52df99f
(svn r26046) -Fix: handle a number of failure conditions from methods called in the network code
2013-11-22 21:41:19 +00:00
rubidium
fad4fa09ba
(svn r26046) -Fix: handle a number of failure conditions from methods called in the network code
2013-11-22 21:41:19 +00:00
rubidium
ee93be2e3f
(svn r22403) -Document: some more network/core code
2011-05-01 13:29:40 +00:00
rubidium
99ec3a044a
(svn r22403) -Document: some more network/core code
2011-05-01 13:29:40 +00:00
rubidium
c70499b4b6
(svn r22068) -Codechange/Fix: return "connection lost" instead of "okay" when SendPackets closed the connection
2011-02-12 21:09:34 +00:00
rubidium
adfd648031
(svn r22068) -Codechange/Fix: return "connection lost" instead of "okay" when SendPackets closed the connection
2011-02-12 21:09:34 +00:00
rubidium
c7066d00af
(svn r21358) -Codechange: make some network function names conform to coding style
2010-11-30 13:38:46 +00:00
rubidium
b6c2216749
(svn r21358) -Codechange: make some network function names conform to coding style
2010-11-30 13:38:46 +00:00
rubidium
9f9141c3c1
(svn r21357) -Codechange: make it possible to resize the packet's buffer
2010-11-30 13:22:29 +00:00
rubidium
9c83a8975f
(svn r21357) -Codechange: make it possible to resize the packet's buffer
2010-11-30 13:22:29 +00:00
rubidium
df8b493d6e
(svn r21182) -Fix: possible just-freed memory reads
2010-11-14 12:05:24 +00:00
rubidium
673b3711b4
(svn r21182) -Fix: possible just-freed memory reads
2010-11-14 12:05:24 +00:00
rubidium
cac1a9f33f
(svn r20939) -Fix: some MSVC warnings
2010-10-15 22:08:57 +00:00
rubidium
5ed77b4919
(svn r20939) -Fix: some MSVC warnings
2010-10-15 22:08:57 +00:00
rubidium
1ae97e4d0e
(svn r20933) -Codechange: move some more client related methods and such to network_client.cpp
2010-10-15 19:33:08 +00:00
rubidium
f555e6d72e
(svn r20933) -Codechange: move some more client related methods and such to network_client.cpp
2010-10-15 19:33:08 +00:00
rubidium
1e68ee0de8
(svn r18801) -Fix: in some cases error messages weren't properly sent to the client before closing the connection. As a result the client would say 'connection lost' when the cause was something completely different.
2010-01-14 21:48:42 +00:00
rubidium
f89d6bea0e
(svn r18801) -Fix: in some cases error messages weren't properly sent to the client before closing the connection. As a result the client would say 'connection lost' when the cause was something completely different.
2010-01-14 21:48:42 +00:00
smatz
c2c23ec661
(svn r17746) -Codechange: 'operator new' doesn't return NULL, NetworkSend_Init() is useless
2009-10-09 11:03:00 +00:00
smatz
eb72a0095f
(svn r17746) -Codechange: 'operator new' doesn't return NULL, NetworkSend_Init() is useless
2009-10-09 11:03:00 +00:00
rubidium
65f97fb38c
(svn r17742) -Codechange: remove unused variable from Recv_Packet
2009-10-07 20:58:14 +00:00
rubidium
df75db67eb
(svn r17742) -Codechange: remove unused variable from Recv_Packet
2009-10-07 20:58:14 +00:00
rubidium
982b8ee5fc
(svn r17693) -Cleanup: remove some unneeded includes
2009-10-04 17:16:41 +00:00
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
2009-10-04 17:16:41 +00:00
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
rubidium
71c7064ad6
(svn r16601) -Fix [FS#2880]: try 2... hopefully better this time
2009-06-19 20:26:18 +00:00
rubidium
9b156c1bd4
(svn r16601) -Fix [FS#2880]: try 2... hopefully better this time
2009-06-19 20:26:18 +00:00
rubidium
e1a7fad295
(svn r15971) -Codechange: make it possible for UDP socket handlers to bind to multiple sockets.
2009-04-07 20:27:13 +00:00
rubidium
2a6e9288fd
(svn r15971) -Codechange: make it possible for UDP socket handlers to bind to multiple sockets.
2009-04-07 20:27:13 +00:00
rubidium
a25684b833
(svn r15967) -Codechange: do not access NetworkSocketHandler::has_quit directly
2009-04-07 18:23:14 +00:00
rubidium
22d9306889
(svn r15967) -Codechange: do not access NetworkSocketHandler::has_quit directly
2009-04-07 18:23:14 +00:00
rubidium
bf47489d58
(svn r15206) -Fix [FS#2567]: memory corruption due to not properly cleanup up the mess when cancelling a download
2009-01-22 10:09:56 +00:00
rubidium
4f5a8b15ed
(svn r15206) -Fix [FS#2567]: memory corruption due to not properly cleanup up the mess when cancelling a download
2009-01-22 10:09:56 +00:00
rubidium
206841ba5f
(svn r15163) -Change/Fix: use a non-blocking method to resolve the hostname and connect to game servers.
2009-01-20 11:28:18 +00:00
rubidium
28a641066e
(svn r15163) -Change/Fix: use a non-blocking method to resolve the hostname and connect to game servers.
2009-01-20 11:28:18 +00:00
rubidium
850a2735cc
(svn r15079) -Codechange: split tcp 'backend' and in-game handling like it is for UDP.
2009-01-14 12:50:13 +00:00
rubidium
e18c24cdb5
(svn r15079) -Codechange: split tcp 'backend' and in-game handling like it is for UDP.
2009-01-14 12:50:13 +00:00
rubidium
3b08d2ecaa
(svn r14760) -Fix (rlongago): network connection of clients being closed twice (found due to added assertion in r14730)
2008-12-28 21:45:41 +00:00
rubidium
105b84e343
(svn r14760) -Fix (rlongago): network connection of clients being closed twice (found due to added assertion in r14730)
2008-12-28 21:45:41 +00:00
rubidium
54f23ed0b3
(svn r14730) -Codechange: remove the need for networkclientsockets and networkclientinfo structs to be in a contiguous piece of memory and put them in a pool.
...
-Note: 255 should really be enough for now... making it any more means network protocol bumps.
2008-12-23 20:52:27 +00:00