mirror of
https://github.com/glest/glest-source.git
synced 2025-08-21 15:41:24 +02:00
- cleanup unused code
This commit is contained in:
@@ -1846,7 +1846,6 @@ void MenuStateCustomGame::render() {
|
|||||||
delete factionVideo;
|
delete factionVideo;
|
||||||
factionVideo = NULL;
|
factionVideo = NULL;
|
||||||
|
|
||||||
NetworkManager &networkManager= NetworkManager::getInstance();
|
|
||||||
ServerInterface* serverInterface= NetworkManager::getInstance().getServerInterface();
|
ServerInterface* serverInterface= NetworkManager::getInstance().getServerInterface();
|
||||||
if(serverInterface != NULL) {
|
if(serverInterface != NULL) {
|
||||||
initFactionPreview(serverInterface->getGameSettings());
|
initFactionPreview(serverInterface->getGameSettings());
|
||||||
|
@@ -563,13 +563,11 @@ void MenuStateJoinGame::update()
|
|||||||
|
|
||||||
Config& config= Config::getInstance();
|
Config& config= Config::getInstance();
|
||||||
string host = labelServerIp.getText();
|
string host = labelServerIp.getText();
|
||||||
int port = config.getInt("ServerPort",intToStr(GameConstants::serverPort).c_str());
|
|
||||||
std::vector<std::string> hostPartsList;
|
std::vector<std::string> hostPartsList;
|
||||||
Tokenize(host,hostPartsList,":");
|
Tokenize(host,hostPartsList,":");
|
||||||
if(hostPartsList.size() > 1) {
|
if(hostPartsList.size() > 1) {
|
||||||
host = hostPartsList[0];
|
host = hostPartsList[0];
|
||||||
replaceAll(hostPartsList[1],"_","");
|
replaceAll(hostPartsList[1],"_","");
|
||||||
port = strToInt(hostPartsList[1]);
|
|
||||||
}
|
}
|
||||||
string saveHost = Ip(host).getString();
|
string saveHost = Ip(host).getString();
|
||||||
if(hostPartsList.size() > 1) {
|
if(hostPartsList.size() > 1) {
|
||||||
|
Reference in New Issue
Block a user