summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authorWushin <pasekei@gmail.com>2015-05-19 21:50:41 -0500
committerWushin <pasekei@gmail.com>2015-05-19 21:50:41 -0500
commit29ce27e1557404b6cd03eaab2367c5a698e6ab44 (patch)
tree28da27416f52edaa41c049a60ebcc4869ddde1f2 /src/login
parent20cbf97dbaded8c2bead5b4f1a4838528c63a2a5 (diff)
parent4166a53fa3ced75afa25bd5bfb20ca87eca0e25f (diff)
downloadtmwa-15.5.19.tar.gz
tmwa-15.5.19.tar.bz2
tmwa-15.5.19.tar.xz
tmwa-15.5.19.zip
Merge pull request #89 from mekolat/sitv15.5.19
allow to make npcs sit
Diffstat (limited to 'src/login')
-rw-r--r--src/login/login.cpp4
-rw-r--r--src/login/login.hpp2
2 files changed, 1 insertions, 5 deletions
diff --git a/src/login/login.cpp b/src/login/login.cpp
index 886c510..9310ad3 100644
--- a/src/login/login.cpp
+++ b/src/login/login.cpp
@@ -2494,9 +2494,7 @@ void parse_login(Session *s)
result = mmo_auth(&account, s);
if (result == -1)
{
- VERSION_2 version_2 = fixed.version_2_flags;
- if (!bool(version_2 & VERSION_2::UPDATEHOST)
- || !bool(version_2 & VERSION_2::SERVERORDER))
+ if (fixed.version < MIN_CLIENT_VERSION)
result = 5; // client too old
}
if (result == -1)
diff --git a/src/login/login.hpp b/src/login/login.hpp
index ae99558..ba42bae 100644
--- a/src/login/login.hpp
+++ b/src/login/login.hpp
@@ -18,8 +18,6 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-#include "login.t.hpp"
-
#include "fwd.hpp"
#include "../strings/vstring.hpp"