~ubuntu-branches/ubuntu/trusty/manaplus/trusty

« back to all changes in this revision

Viewing changes to src/net/serverinfo.h

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2013-10-07 10:26:14 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20131007102614-tg2zjdz8vmtl6n7i
Tags: 1.3.9.29-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
                port != other.port);
127
127
    }
128
128
 
129
 
    static Type parseType(const std::string &type) A_WARN_UNUSED
 
129
    static Type parseType(const std::string &serverType) A_WARN_UNUSED
130
130
    {
131
 
        if (compareStrI(type, "tmwathena") == 0)
 
131
        if (compareStrI(serverType, "tmwathena") == 0)
132
132
            return TMWATHENA;
133
 
        if (compareStrI(type, "evol") == 0)
 
133
        if (compareStrI(serverType, "evol") == 0)
134
134
            return EVOL;
135
135
#ifdef EATHENA_SUPPORT
136
 
        else if (compareStrI(type, "eathena") == 0)
 
136
        else if (compareStrI(serverType, "eathena") == 0)
137
137
            return EATHENA;
138
138
#else
139
 
        else if (compareStrI(type, "eathena") == 0)
 
139
        else if (compareStrI(serverType, "eathena") == 0)
140
140
            return TMWATHENA;
141
141
#endif
142
142
#ifdef MANASERV_SUPPORT
143
 
        else if (compareStrI(type, "manaserv") == 0)
 
143
        else if (compareStrI(serverType, "manaserv") == 0)
144
144
            return MANASERV;
145
145
#endif
146
146
        return UNKNOWN;