From 90f506feb5e02865f9e86ec1c0a2a497389776a5 Mon Sep 17 00:00:00 2001 From: Per Inge Mathisen Date: Tue, 18 Jan 2011 22:42:29 +0100 Subject: [PATCH] Add slot number to position chooser as requested by dak180 --- src/multiint.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/multiint.cpp b/src/multiint.cpp index cc47d57b9..798aa2c36 100644 --- a/src/multiint.cpp +++ b/src/multiint.cpp @@ -3708,11 +3708,14 @@ void displayPosition(WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset, PIELIGHT { const int x = xOffset + psWidget->x; const int y = yOffset + psWidget->y; + const int i = psWidget->UserData; + char text[80]; drawBlueBox(x, y, psWidget->width, psWidget->height); iV_SetFont(font_regular); iV_SetTextColour(WZCOL_TEXT_BRIGHT); - iV_DrawText("Click here to select this slot", x + 10, y + 22); + ssprintf(text, "Click to take player slot %d", NetPlay.players[i].position); + iV_DrawText(text, x + 10, y + 22); } static void displayAi(WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset, PIELIGHT *pColours)