From 7c8a134b082e1224a6ece26cefdf939753088e2c Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 29 Apr 2009 19:57:50 +0200 Subject: Core in Server umbenannt --- src/Common/RequestManager.cpp | 2 +- src/Common/RequestManager.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/Common') 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("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 requestMaps; - bool core; + bool server; uint16_t lastRequestId; std::map 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; -- cgit v1.2.3