summaryrefslogtreecommitdiff
path: root/src/network/network_data.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-01-12 20:19:49 +0000
committerrubidium <rubidium@openttd.org>2007-01-12 20:19:49 +0000
commit98e462e56444155a11fe92b9391c2faf1aea90d2 (patch)
tree23bff1b129004614fd68cb0c30436a14bbe240e9 /src/network/network_data.cpp
parent473ed1d351e04b8f000325219bf80f54bd96b7f1 (diff)
downloadopenttd-98e462e56444155a11fe92b9391c2faf1aea90d2.tar.xz
(svn r8083) -Codechange: make a NetworkSocketHandler as base for all sockets and move a little of NetworkClientState functionality to the NetworkSocketHandler. Move the rest of the NetworkClientState to the new NetworkTCPSocketHandler class/struct, which is not yet implemented in an object oriented manner. The UDP socket handler now extends the NetworkSocketHandler instead of having a reference to a NetworkClientState.
Diffstat (limited to 'src/network/network_data.cpp')
-rw-r--r--src/network/network_data.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_data.cpp b/src/network/network_data.cpp
index 4b0166c9a..7cb27adf7 100644
--- a/src/network/network_data.cpp
+++ b/src/network/network_data.cpp
@@ -12,7 +12,7 @@
#include "../helpers.hpp"
// Add a command to the local command queue
-void NetworkAddCommandQueue(NetworkClientState *cs, CommandPacket *cp)
+void NetworkAddCommandQueue(NetworkTCPSocketHandler *cs, CommandPacket *cp)
{
CommandPacket* new_cp = MallocT<CommandPacket>(1);
@@ -65,7 +65,7 @@ void NetworkSend_Command(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, Comma
// client on the server can do everything 1 tick faster than others.
// So to keep the game fair, we delay the command with 1 tick
// which gives about the same speed as most clients.
- NetworkClientState *cs;
+ NetworkTCPSocketHandler *cs;
// And we queue it for delivery to the clients
FOR_ALL_CLIENTS(cs) {