From 260012382d07ef38bcc8f58bb4c8f6aadbf6d371 Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 11 Jun 2006 16:00:56 +0000 Subject: (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 --- main_gui.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'main_gui.c') 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; -- cgit v1.2.3-70-g09d2