summaryrefslogtreecommitdiff
path: root/src/console_cmds.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/console_cmds.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/console_cmds.cpp')
-rw-r--r--src/console_cmds.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index 8f495e32b..21012e458 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -550,7 +550,7 @@ DEF_CONSOLE_CMD(ConStatus)
"active"
};
- const NetworkClientState *cs;
+ NetworkTCPSocketHandler *cs;
if (argc == 0) {
IConsoleHelp("List the status of all clients connected to the server. Usage 'status'");
@@ -672,7 +672,7 @@ DEF_CONSOLE_CMD(ConKick)
DEF_CONSOLE_CMD(ConResetCompany)
{
const Player *p;
- const NetworkClientState *cs;
+ NetworkTCPSocketHandler *cs;
const NetworkClientInfo *ci;
PlayerID index;