summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-02-18 15:17:27 +0000
committerrubidium <rubidium@openttd.org>2009-02-18 15:17:27 +0000
commit2b8dd76cfa4e58c535749567dd1b020271138e72 (patch)
tree46b12a915985da0e04f8e621b873a7ac4d0cb5f8
parent3bafe9b0e2e47d1675129848ed366e8a4959ac70 (diff)
downloadopenttd-2b8dd76cfa4e58c535749567dd1b020271138e72.tar.xz
(svn r15514) -Fix: make the join/spectate command require to be connected to a network game; in SP it could lead to crashes.
-rw-r--r--src/console_cmds.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index 431021eb2..0993bf47d 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -1797,7 +1797,7 @@ void IConsoleStdLibRegister()
IConsoleCmdHookAdd("rcon", ICONSOLE_HOOK_ACCESS, ConHookNeedNetwork);
IConsoleCmdRegister("join", ConJoinCompany);
- IConsoleCmdHookAdd("join", ICONSOLE_HOOK_ACCESS, ConHookClientOnly);
+ IConsoleCmdHookAdd("join", ICONSOLE_HOOK_ACCESS, ConHookNeedNetwork);
IConsoleAliasRegister("spectate", "join 255");
IConsoleCmdRegister("move", ConMoveClient);
IConsoleCmdHookAdd("move", ICONSOLE_HOOK_ACCESS, ConHookServerOnly);