summaryrefslogtreecommitdiffstats
path: root/src/Common
diff options
context:
space:
mode:
Diffstat (limited to 'src/Common')
-rw-r--r--src/Common/RequestManager.cpp2
-rw-r--r--src/Common/RequestManager.h10
2 files changed, 6 insertions, 6 deletions
diff --git a/src/Common/RequestManager.cpp b/src/Common/RequestManager.cpp
index 75f07cf..1edf778 100644
--- a/src/Common/RequestManager.cpp
+++ b/src/Common/RequestManager.cpp
@@ -144,7 +144,7 @@ void RequestManager::unregisterPacketType(const std::string &type) {
requestHandlerFactories.erase(it);
}
-RequestManager::RequestManager() : core(false), lastRequestId(-1) {
+RequestManager::RequestManager() : server(false), lastRequestId(-1) {
registerPacketType<RequestHandlers::DisconnectRequestHandler>("Disconnect");
}
diff --git a/src/Common/RequestManager.h b/src/Common/RequestManager.h
index c94200f..e9ce189 100644
--- a/src/Common/RequestManager.h
+++ b/src/Common/RequestManager.h
@@ -72,7 +72,7 @@ class RequestManager {
static RequestManager requestManager;
std::map<Connection*,RequestMap*> requestMaps;
- bool core;
+ bool server;
uint16_t lastRequestId;
std::map<std::string,RequestHandlerFactory*> requestHandlerFactories;
@@ -98,11 +98,11 @@ class RequestManager {
return &requestManager;
}
- bool isCore() const {return core;}
- void setCore(bool newCore) {
- core = newCore;
+ bool isServer() const {return server;}
+ void setServer(bool newServer) {
+ server = newServer;
- if(core)
+ if(server)
lastRequestId &= ~0x01;
else
lastRequestId |= 0x01;