From ae338b1ac0db5601f8a716435b3bcc24f07ca120 Mon Sep 17 00:00:00 2001 From: in1tiate Date: Wed, 10 Mar 2021 21:02:59 -0600 Subject: [PATCH] please compile before you commit, rose --- include/aoclient.h | 3 ++- src/packets.cpp | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/aoclient.h b/include/aoclient.h index 039d73a..4b33f53 100644 --- a/include/aoclient.h +++ b/include/aoclient.h @@ -64,7 +64,7 @@ class AOClient : public QObject { int release = -1; int major = -1; int minor = -1; - } + }; ClientVersion version; QMap ACLFlags { @@ -106,6 +106,7 @@ class AOClient : public QObject { void handleCommand(QString command, int argc, QStringList argv); void changeArea(int new_area); void changeCharacter(int char_id); + void changePosition(QString new_pos); void arup(ARUPType type, bool broadcast); void fullArup(); void sendServerMessage(QString message); diff --git a/src/packets.cpp b/src/packets.cpp index cc3c67b..337286f 100644 --- a/src/packets.cpp +++ b/src/packets.cpp @@ -58,8 +58,8 @@ void AOClient::pktSoftwareId(AreaData* area, int argc, QStringList argv, AOPacke // Extremely cursed client version string validation // Ideally version strings should be X.X.X but it can be literally anything // so we have to be super careful - version->string = argv[1]; - QString version_raw = argv[1].split("."); + version.string = argv[1]; + QStringList version_raw = version.string.split("."); bool ok; int release_version = version_raw[0].toInt(&ok); if (ok && version_raw.size() >= 1)