Skip to content

Commit deaf982

Browse files
committed
rework how we construct THeMaster object.
1 parent 64c708c commit deaf982

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/parsec_server/sv_main.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ int main( int argc, char** argv )
7272
// and overload ourselves to a MasterServer Object
7373
// if we are.
7474
if(TheServer->GetServerIsMaster()){
75-
TheMaster = (MasterServer *)TheServer; //clever...
75+
// re-initialize ourselves as a master.
76+
TheMaster = new MasterServer();
77+
TheServer = (E_GameServer *)TheMaster;
78+
TheServer->SetServerIsMaster(TRUE);
7679
}
7780

7881
// initialize the server components

0 commit comments

Comments
 (0)