Changeset 439f7bc in network-game for client/Client/main.cpp


Ignore:
Timestamp:
Nov 29, 2012, 7:17:44 PM (12 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
87b3ee2
Parents:
371ce29
Message:

Client sends a test registration message when the user enters a username

File:
1 edited

Legend:

Unmodified
Added
Removed
  • client/Client/main.cpp

    r371ce29 r439f7bc  
    207207                  case STATE_START:
    208208                  {
    209                      msgTo.type = MSG_TYPE_LOGIN;
    210209                     username = input;
     210                     strcpy(msgTo.buffer+input.size()+1, "MyPassword");
     211                     msgTo.type = MSG_TYPE_REGISTER;
     212                     //msgTo.type = MSG_TYPE_LOGIN;
    211213
    212214                     sendMessage(&msgTo, sock, &server);
     
    370372         chatConsole.addLine(response);
    371373
     374         /*
    372375         if (response.compare("Player has already logged in.") == 0)
    373376         {
     
    380383            state = STATE_LOGIN;
    381384         }
     385         */
    382386
    383387         break;
Note: See TracChangeset for help on using the changeset viewer.