From 271d9961608728c034ec261832e888ae1ea61711 Mon Sep 17 00:00:00 2001 From: ob1kenewb Date: Sun, 4 May 2003 23:03:03 +0000 Subject: [PATCH] Added a hook to change the map during an hosted game F5 to choose it --- src/multiwait.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/multiwait.c b/src/multiwait.c index 248df10..5f5da9f 100644 --- a/src/multiwait.c +++ b/src/multiwait.c @@ -1,4 +1,4 @@ -/* +/* multiwait.c - this manages only the network screen where everyone have to select it's players and where even the basic chat is inside */ @@ -344,6 +344,13 @@ wait_for_players () done = 1; } + if ((GT_MP_PTPM) && keys[SDLK_F5] && (!keypressed)) { + /* Map modification */ + menu_get_text ("Enter the path of a field file", bman.fieldpath, 30); + draw_logo(); + chat_drawbox(); + } + chat_loop (&event); }