~ubuntu-branches/ubuntu/vivid/manaplus/vivid-proposed

« back to all changes in this revision

Viewing changes to src/net/tmwa/loginhandler.cpp

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi, Andrei Karas, Patrick Matthäi
  • Date: 2014-10-27 18:15:40 UTC
  • mfrom: (1.1.37)
  • Revision ID: package-import@ubuntu.com-20141027181540-jvyjufjo9igruklh
Tags: 1.4.10.25-1
[ Andrei Karas ]
* Updated debian/copyright.

[ Patrick Matthäi ]
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
    switch (msg.getId())
76
76
    {
77
77
        case SMSG_CHAR_PASSWORD_RESPONSE:
78
 
            procecessCharPasswordResponse(msg);
 
78
            processCharPasswordResponse(msg);
79
79
            break;
80
80
 
81
81
        case SMSG_UPDATE_HOST:
189
189
 
190
190
void LoginHandler::processServerVersion(Net::MessageIn &msg)
191
191
{
192
 
    const uint8_t b1 = msg.readUInt8();  // -1
193
 
    const uint8_t b2 = msg.readUInt8();  // E
194
 
    const uint8_t b3 = msg.readUInt8();  // V
195
 
    const uint8_t b4 = msg.readUInt8();  // L
 
192
    const uint8_t b1 = msg.readUInt8("b1");  // -1
 
193
    const uint8_t b2 = msg.readUInt8("b2");  // E
 
194
    const uint8_t b3 = msg.readUInt8("b3");  // V
 
195
    const uint8_t b4 = msg.readUInt8("b4");  // L
196
196
    if (b1 == 255 && b2 == 'E' && b3 == 'V' && b4 == 'L')
197
197
    {
198
198
        const unsigned int options = msg.readUInt8("options");
199
199
        mRegistrationEnabled = options & FLAG_REGISTRATION;
200
 
        msg.skip(2, "unused");
 
200
        msg.readInt16("unused");
201
201
        serverVersion = msg.readUInt8("server version");
202
202
        tmwServerVersion = 0;
203
203
        if (serverVersion >= 5)
241
241
    mVersionResponse = true;
242
242
}
243
243
 
244
 
void LoginHandler::processUpdateHost2(Net::MessageIn &msg) const
 
244
void LoginHandler::processUpdateHost2(Net::MessageIn &msg)
245
245
{
246
246
    const int len = msg.readInt16("len") - 4;
247
247
    const std::string updateHost = msg.readString(len, "host");