PolitikerNEU jpg and png support! ( currently linux only ? )

Some little changes where I forgot to integrate the playername
Mousescroll is not longer super fast
This commit is contained in:
Titus Tscharntke
2010-03-23 23:32:25 +00:00
parent f18c73d371
commit ecc39ea911
24 changed files with 1454 additions and 100 deletions

View File

@@ -55,7 +55,7 @@ ClientInterface::~ClientInterface()
if(clientSocket != NULL && clientSocket->isConnected() == true)
{
string sQuitText = getHostName() + " has chosen to leave the game!";
string sQuitText = Config::getInstance().getString("NetPlayerName",Socket::getHostName().c_str()) + " has chosen to leave the game!";
sendTextMessage(sQuitText,-1);
}
@@ -85,7 +85,7 @@ void ClientInterface::reset()
{
if(getSocket() != NULL)
{
string sQuitText = getHostName() + " has chosen to leave the game!";
string sQuitText = Config::getInstance().getString("NetPlayerName",Socket::getHostName().c_str()) + " has chosen to leave the game!";
sendTextMessage(sQuitText,-1);
close();
}
@@ -554,7 +554,7 @@ void ClientInterface::quitGame(bool userManuallyQuit)
if(clientSocket != NULL && userManuallyQuit == true)
{
string sQuitText = getHostName() + " has chosen to leave the game!";
string sQuitText = Config::getInstance().getString("NetPlayerName",Socket::getHostName().c_str()) + " has chosen to leave the game!";
sendTextMessage(sQuitText,-1);
close();
}