Added boolean to OpenSpaceEngine declaring if this node is the master or not.

made sure it's set in the right place in main file.
removed all references to sgct::engine::instance()->isMaster() and replaced with calls to openspaceengine isMaster() function.
This commit is contained in:
Joakim Kilby
2015-02-20 10:45:33 +01:00
parent ac3ece65ba
commit a26214a38d
4 changed files with 35 additions and 20 deletions
+3 -1
View File
@@ -59,7 +59,8 @@ public:
static bool isInitialized();
bool initialize();
bool isMaster();
void setMaster(bool master);
static bool findConfiguration(std::string& filename);
// Guaranteed to return a valid pointer
@@ -110,6 +111,7 @@ private:
LuaConsole* _console;
gui::GUI* _gui;
double _dt;
bool _isMaster;
SyncBuffer* _syncBuffer;
};