summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-03-15 11:47:18 -0300
committermrb0nk500 <b0nk@b0nk.xyz>2023-03-15 11:47:18 -0300
commit741af37a4fe17d0340b221b2cb64e4c68e12464c (patch)
tree7275eb1b151b96e3c15d789193ed2518b6303f1d
parentad1179e6cfeb07ff865e0086627761b0a04bfd79 (diff)
TProtocol: Rename `maybe_release_flag` -> `enable_v2_features`
-rw-r--r--context.h2
-rw-r--r--include/pso/TProtocol.h2
-rw-r--r--src/pso/TProtocol.cpp5
3 files changed, 4 insertions, 5 deletions
diff --git a/context.h b/context.h
index 04c2593..c0ddcc1 100644
--- a/context.h
+++ b/context.h
@@ -555,7 +555,7 @@ extern TTcpSocket *tcp_socket_table[16];
// pso/TProtocol.h
EXTERN_OBJECT_NAME(TProtocol);
-extern int maybe_release_flag;
+extern int enable_v2_features;
extern u32 new_ip_addr;
extern u16 new_port;
extern TPlyMeetUserExtension meet_user_settings;
diff --git a/include/pso/TProtocol.h b/include/pso/TProtocol.h
index fa9f6da..c5e9503 100644
--- a/include/pso/TProtocol.h
+++ b/include/pso/TProtocol.h
@@ -19,7 +19,7 @@
#include <pso/TTcpSocket.h>
EXTERN_OBJECT_NAME(TProtocol);
-extern int maybe_release_flag;
+extern int enable_v2_features;
extern u32 new_ip_addr;
extern u16 new_port;
extern TPlyMeetUserExtension meet_user_settings;
diff --git a/src/pso/TProtocol.cpp b/src/pso/TProtocol.cpp
index 895a09a..58eaa56 100644
--- a/src/pso/TProtocol.cpp
+++ b/src/pso/TProtocol.cpp
@@ -14,8 +14,7 @@
OBJECT_NAME(TProtocol);
packet *server_packet = nullptr;
-// Seems like this is 1 if it's the full release, and 0 if it's the trial edition.
-int maybe_release_flag = 1;
+int enable_v2_features = 1;
u32 new_ip_addr;
u16 new_port;
TPlyMeetUserExtension meet_user_settings;
@@ -77,7 +76,7 @@ void TProtocol::recv_room_info(packet &pkt) {
m_lobby_list_count = tmp.header.flags;
- if (maybe_release_flag) {
+ if (enable_v2_features) {
for (int i = 0; i < m_lobby_list_count; ++i) {
m_lobby_entries[i] = tmp.entries[i];
}