From c6bd8e351804c5a337573c511e8406d759f1fbc8 Mon Sep 17 00:00:00 2001 From: Frank Zago Date: Fri, 23 Oct 2009 01:48:03 +0000 Subject: [PATCH] Fixed bug 163 and display the right text when saving a game. --- client/CPreGame.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/client/CPreGame.cpp b/client/CPreGame.cpp index be289020b..613983658 100644 --- a/client/CPreGame.cpp +++ b/client/CPreGame.cpp @@ -731,8 +731,16 @@ void SelectionTab::showAll( SDL_Surface * to ) { CIntObject::showAll(to); printMaps(to); - CSDL_Ext::printAtMiddle(CGI->generaltexth->arraytxt[type==newGame ? 229 : 230], 208, 34, FONT_MEDIUM, tytulowy, to); //Select a Scenario to Play - CSDL_Ext::printAtMiddle(CGI->generaltexth->allTexts[510], 90, 68, FONT_SMALL, tytulowy, to); //Map sizes + + int txtid; + switch(type) { + case newGame: txtid = 229; break; + case loadGame: txtid = 230; break; + case saveGame: txtid = 231; break; + } + + CSDL_Ext::printAtMiddle(CGI->generaltexth->arraytxt[txtid], pos.x+205, pos.y+28, FONT_MEDIUM, tytulowy, to); //Select a Scenario to Play + CSDL_Ext::printAtMiddle(CGI->generaltexth->allTexts[510], pos.x+87, pos.y+62, FONT_SMALL, tytulowy, to); //Map sizes } void SelectionTab::clickLeft( tribool down, bool previousState )