summaryrefslogtreecommitdiff
path: root/main_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-06-11 16:00:56 +0000
committertron <tron@openttd.org>2006-06-11 16:00:56 +0000
commit260012382d07ef38bcc8f58bb4c8f6aadbf6d371 (patch)
tree8231e06357f55a4c8d55761c3c11601f2b1d7285 /main_gui.c
parent88f9473c85661a3ca7a53d2d3d71efd2dc0b242b (diff)
downloadopenttd-260012382d07ef38bcc8f58bb4c8f6aadbf6d371.tar.xz
(svn r5226) Reduce the mess that sending chat messages is
This also fixes a bug: -Fix: It was possible to rename a signs or waypoints with the chat box
Diffstat (limited to 'main_gui.c')
-rw-r--r--main_gui.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/main_gui.c b/main_gui.c
index 71c77d001..d2389ec8b 100644
--- a/main_gui.c
+++ b/main_gui.c
@@ -77,12 +77,6 @@ void HandleOnEditText(WindowEvent *e)
DoCommandP(0, id, 0, NULL, CMD_RENAME_WAYPOINT | CMD_MSG(STR_CANT_CHANGE_WAYPOINT_NAME));
break;
#ifdef ENABLE_NETWORK
- case 2: /* Speak to.. */
- if (!_network_server)
- SEND_COMMAND(PACKET_CLIENT_CHAT)(NETWORK_ACTION_CHAT + (id & 0xFF), id & 0xFF, (id >> 8) & 0xFF, e->edittext.str);
- else
- NetworkServer_HandleChat(NETWORK_ACTION_CHAT + (id & 0xFF), id & 0xFF, (id >> 8) & 0xFF, e->edittext.str, NETWORK_SERVER_INDEX);
- break;
case 3: { /* Give money, you can only give money in excess of loan */
const Player *p = GetPlayer(_current_player);
int32 money = min(p->money64 - p->current_loan, atoi(e->edittext.str) / _currency->rate);
@@ -328,13 +322,6 @@ static void MenuClickBuildAir(int index)
#ifdef ENABLE_NETWORK
-void ShowNetworkChatQueryWindow(byte desttype, byte dest)
-{
- _rename_id = desttype + (dest << 8);
- _rename_what = 2;
- ShowChatWindow();
-}
-
void ShowNetworkGiveMoneyWindow(byte player)
{
_rename_id = player;