We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64c708c commit deaf982Copy full SHA for deaf982
1 file changed
src/parsec_server/sv_main.cpp
@@ -72,7 +72,10 @@ int main( int argc, char** argv )
72
// and overload ourselves to a MasterServer Object
73
// if we are.
74
if(TheServer->GetServerIsMaster()){
75
- TheMaster = (MasterServer *)TheServer; //clever...
+ // re-initialize ourselves as a master.
76
+ TheMaster = new MasterServer();
77
+ TheServer = (E_GameServer *)TheMaster;
78
+ TheServer->SetServerIsMaster(TRUE);
79
}
80
81
// initialize the server components
0 commit comments