please compile before you commit, rose
This commit is contained in:
parent
6aff469a8c
commit
ae338b1ac0
@ -64,7 +64,7 @@ class AOClient : public QObject {
|
|||||||
int release = -1;
|
int release = -1;
|
||||||
int major = -1;
|
int major = -1;
|
||||||
int minor = -1;
|
int minor = -1;
|
||||||
}
|
};
|
||||||
ClientVersion version;
|
ClientVersion version;
|
||||||
|
|
||||||
QMap<QString, unsigned long long> ACLFlags {
|
QMap<QString, unsigned long long> ACLFlags {
|
||||||
@ -106,6 +106,7 @@ class AOClient : public QObject {
|
|||||||
void handleCommand(QString command, int argc, QStringList argv);
|
void handleCommand(QString command, int argc, QStringList argv);
|
||||||
void changeArea(int new_area);
|
void changeArea(int new_area);
|
||||||
void changeCharacter(int char_id);
|
void changeCharacter(int char_id);
|
||||||
|
void changePosition(QString new_pos);
|
||||||
void arup(ARUPType type, bool broadcast);
|
void arup(ARUPType type, bool broadcast);
|
||||||
void fullArup();
|
void fullArup();
|
||||||
void sendServerMessage(QString message);
|
void sendServerMessage(QString message);
|
||||||
|
@ -58,8 +58,8 @@ void AOClient::pktSoftwareId(AreaData* area, int argc, QStringList argv, AOPacke
|
|||||||
// Extremely cursed client version string validation
|
// Extremely cursed client version string validation
|
||||||
// Ideally version strings should be X.X.X but it can be literally anything
|
// Ideally version strings should be X.X.X but it can be literally anything
|
||||||
// so we have to be super careful
|
// so we have to be super careful
|
||||||
version->string = argv[1];
|
version.string = argv[1];
|
||||||
QString version_raw = argv[1].split(".");
|
QStringList version_raw = version.string.split(".");
|
||||||
bool ok;
|
bool ok;
|
||||||
int release_version = version_raw[0].toInt(&ok);
|
int release_version = version_raw[0].toInt(&ok);
|
||||||
if (ok && version_raw.size() >= 1)
|
if (ok && version_raw.size() >= 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user