summaryrefslogtreecommitdiff
path: root/src/command.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-06-11 18:24:01 +0000
committerfrosch <frosch@openttd.org>2013-06-11 18:24:01 +0000
commitc73219f9e5a640a07b1ec6b6e4b875aaf7304eb2 (patch)
tree4a57f19c769c34ebd595810c292263a36e139577 /src/command.cpp
parent040562909bc14f2b3870e6ac3cd0722714d0a32d (diff)
downloadopenttd-c73219f9e5a640a07b1ec6b6e4b875aaf7304eb2.tar.xz
(svn r25394) -Fix: Restrict renaming engines to the server, just like renaming towns.
Diffstat (limited to 'src/command.cpp')
-rw-r--r--src/command.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.cpp b/src/command.cpp
index d0d08ca31..40071810f 100644
--- a/src/command.cpp
+++ b/src/command.cpp
@@ -261,7 +261,7 @@ static const Command _command_proc_table[] = {
DEF_CMD(CmdWantEnginePreview, 0, CMDT_VEHICLE_MANAGEMENT ), // CMD_WANT_ENGINE_PREVIEW
DEF_CMD(CmdRenameVehicle, CMD_STR_CTRL, CMDT_OTHER_MANAGEMENT ), // CMD_RENAME_VEHICLE
- DEF_CMD(CmdRenameEngine, CMD_STR_CTRL, CMDT_OTHER_MANAGEMENT ), // CMD_RENAME_ENGINE
+ DEF_CMD(CmdRenameEngine, CMD_STR_CTRL | CMD_SERVER, CMDT_OTHER_MANAGEMENT ), // CMD_RENAME_ENGINE
DEF_CMD(CmdRenameCompany, CMD_STR_CTRL, CMDT_OTHER_MANAGEMENT ), // CMD_RENAME_COMPANY
DEF_CMD(CmdRenamePresident, CMD_STR_CTRL, CMDT_OTHER_MANAGEMENT ), // CMD_RENAME_PRESIDENT