Save server password so that authentication works.

This commit is contained in:
hiker 2016-03-13 16:30:24 +11:00
parent 96bf567c2e
commit 54463e9d66

View File

@ -220,6 +220,10 @@ void CreateServerScreen::createServer()
else
race_manager->setMinorMode(RaceManager::MINOR_MODE_NORMAL_RACE);
core::stringw password_w = getWidget<TextBoxWidget>("password")->getText();
std::string password(core::stringc(password_w.c_str()).c_str());
NetworkConfig::get()->setPassword(password);
race_manager->setReverseTrack(false);
STKHost::create();