please compile before you commit, rose

This commit is contained in:
in1tiate 2021-03-10 21:02:59 -06:00
parent 6aff469a8c
commit ae338b1ac0
2 changed files with 4 additions and 3 deletions

View File

@ -64,7 +64,7 @@ class AOClient : public QObject {
int release = -1;
int major = -1;
int minor = -1;
}
};
ClientVersion version;
QMap<QString, unsigned long long> 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);

View File

@ -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)