From 6b85266e869630fd642476dfd05627109b2cc7e3 Mon Sep 17 00:00:00 2001 From: David Skoland Date: Mon, 23 Jan 2017 13:09:50 +0100 Subject: [PATCH] obsoleted global_variables, moved to the AOApp object --- Attorney_Online_remake.pro | 2 -- global_variables.cpp | 8 -------- global_variables.h | 8 -------- packet_distribution.cpp | 2 +- 4 files changed, 1 insertion(+), 19 deletions(-) delete mode 100644 global_variables.cpp delete mode 100644 global_variables.h diff --git a/Attorney_Online_remake.pro b/Attorney_Online_remake.pro index 1b2a1a2..0ce693a 100644 --- a/Attorney_Online_remake.pro +++ b/Attorney_Online_remake.pro @@ -20,7 +20,6 @@ SOURCES += main.cpp\ aoimage.cpp \ file_functions.cpp \ aobutton.cpp \ - global_variables.cpp \ debug_functions.cpp \ networkmanager.cpp \ aoapplication.cpp \ @@ -38,7 +37,6 @@ HEADERS += lobby.h \ aoimage.h \ file_functions.h \ aobutton.h \ - global_variables.h \ debug_functions.h \ networkmanager.h \ aoapplication.h \ diff --git a/global_variables.cpp b/global_variables.cpp deleted file mode 100644 index b3a7e12..0000000 --- a/global_variables.cpp +++ /dev/null @@ -1,8 +0,0 @@ -#include "global_variables.h" -#include "text_file_functions.h" - -const int RELEASE = 2; -const int MAJOR_VERSION = 1; -const int MINOR_VERSION = 0; - -QString g_user_theme = "default"; diff --git a/global_variables.h b/global_variables.h deleted file mode 100644 index 941ac49..0000000 --- a/global_variables.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef GLOBAL_VARIABLES_H -#define GLOBAL_VARIABLES_H - -#include - - - -#endif // GLOBAL_VARIABLES_H diff --git a/packet_distribution.cpp b/packet_distribution.cpp index 852afaf..5250dfa 100644 --- a/packet_distribution.cpp +++ b/packet_distribution.cpp @@ -99,7 +99,7 @@ void AOApplication::server_packet_received(AOPacket *p_packet) if (f_contents.size() < 1) return; - //T0D0: save server version here, somehow + //T0D0: save server version here, somehow(it's in the HI# packet usually) } else if (header == "CT") {