diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-04-29 19:57:50 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-04-29 19:57:50 +0200 |
commit | 7c8a134b082e1224a6ece26cefdf939753088e2c (patch) | |
tree | 2400eb68900ff6f6be1e1b808b00c23a76a04877 /src/Common | |
parent | 5a61159a11e1db775a2b5dfebc46c12ff2616b5a (diff) | |
download | mad-7c8a134b082e1224a6ece26cefdf939753088e2c.tar mad-7c8a134b082e1224a6ece26cefdf939753088e2c.zip |
Core in Server umbenannt
Diffstat (limited to 'src/Common')
-rw-r--r-- | src/Common/RequestManager.cpp | 2 | ||||
-rw-r--r-- | src/Common/RequestManager.h | 10 |
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; |