Index: client/Client/main.cpp
===================================================================
--- client/Client/main.cpp	(revision 35d702deba34ba98393329248e4e44593d4638b3)
+++ client/Client/main.cpp	(revision 45c9d0ff0048ddbde55bf53537bef15cb894e33d)
@@ -831,7 +831,4 @@
    cout << "Total players in map: " << mapPlayers.size() << endl;
 
-   // this is outdated since most messages now don't contain just a text string
-   string response = string(msg.buffer);
-
    switch(state)
    {
@@ -844,5 +841,5 @@
             case MSG_TYPE_REGISTER:
             {
-               lblRegisterStatus->setText(response);
+               lblRegisterStatus->setText(msg.buffer);
                break;
             }
@@ -863,17 +860,17 @@
             case MSG_TYPE_LOGIN:
             {
-               if (response.compare("Player has already logged in.") == 0)
+               if (string(msg.buffer).compare("Player has already logged in.") == 0)
                {
                   goToLoginScreen();
                   state = STATE_START;
 
-                  lblLoginStatus->setText(response);
+                  lblLoginStatus->setText(msg.buffer);
                }
-               else if (response.compare("Incorrect username or password") == 0)
+               else if (string(msg.buffer).compare("Incorrect username or password") == 0)
                {
                   goToLoginScreen();
                   state = STATE_START;
 
-                  lblLoginStatus->setText(response);
+                  lblLoginStatus->setText(msg.buffer);
                }
                else
@@ -908,5 +905,5 @@
                // Check if it's about you or another player
                memcpy(&playerId, msg.buffer, 4);
-               response = string(msg.buffer+4);
+               string response = string(msg.buffer+4);
 
                if (playerId == curPlayerId)
@@ -933,5 +930,5 @@
             case MSG_TYPE_CHAT:
             {
-               chatConsole.addLine(response);
+               chatConsole.addLine(msg.buffer);
 
                break;
@@ -1112,5 +1109,4 @@
                // Check if it's about you or another player
                memcpy(&playerId, msg.buffer, 4);
-               response = string(msg.buffer+4);
 
                if (playerId == curPlayerId)
