From 54ce27d19c87ed3223ac9c15767962ff0154cf13 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 8 Oct 2010 16:32:50 +0000 Subject: [PATCH] - attempt to turn off playername editing for this release --- source/glest_game/menu/menu_state_connected_game.cpp | 6 +++++- source/glest_game/menu/menu_state_custom_game.cpp | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/source/glest_game/menu/menu_state_connected_game.cpp b/source/glest_game/menu/menu_state_connected_game.cpp index 32bcfdba..af2177f8 100644 --- a/source/glest_game/menu/menu_state_connected_game.cpp +++ b/source/glest_game/menu/menu_state_connected_game.cpp @@ -1261,6 +1261,8 @@ void MenuStateConnectedGame::keyUp(char key) { } void MenuStateConnectedGame::setActiveInputLabel(GraphicLabel *newLable) { + +/* if(newLable != NULL) { string text= newLable->getText(); size_t found = text.find_last_of("_"); @@ -1278,11 +1280,13 @@ void MenuStateConnectedGame::setActiveInputLabel(GraphicLabel *newLable) { activeInputLabel->setText(text); } activeInputLabel = newLable; +*/ } string MenuStateConnectedGame::getHumanPlayerName() { string result = defaultPlayerName; +/* NetworkManager &networkManager= NetworkManager::getInstance(); ClientInterface* clientInterface= networkManager.getClientInterface(); for(int j=0; jgetText(); size_t found = text.find_last_of("_"); @@ -2423,6 +2424,7 @@ void MenuStateCustomGame::setActiveInputLabel(GraphicLabel *newLable) { activeInputLabel->setText(text); } activeInputLabel = newLable; +*/ } string MenuStateCustomGame::getHumanPlayerName(int index) { @@ -2431,6 +2433,7 @@ string MenuStateCustomGame::getHumanPlayerName(int index) { //printf("\nIn [%s::%s Line: %d] index = %d\n",__FILE__,__FUNCTION__,__LINE__,index); //fflush(stdout); +/* if(index < 0) { for(int j = 0; j < GameConstants::maxPlayers; ++j) { if(listBoxControls[j].getSelectedItemIndex() >= 0) { @@ -2458,7 +2461,7 @@ string MenuStateCustomGame::getHumanPlayerName(int index) { } } } - +*/ return result; }