Changes in preparation for the integration of the network server. GUI does not directly know Game and Hand any more, only Session. WARNING: This version crashes due to initialization order problems.
This commit is contained in:
+4
-2
@@ -87,8 +87,10 @@ int main( int argc, char **argv )
|
||||
///////////////////////////////////////////////////
|
||||
|
||||
GuiInterface *myGuiInterface = new GuiWrapper();
|
||||
Session theFirst(myGuiInterface);
|
||||
myGuiInterface->setSession(&theFirst);
|
||||
{
|
||||
boost::shared_ptr<Session> session(new Session(myGuiInterface));
|
||||
myGuiInterface->setSession(session);
|
||||
}
|
||||
|
||||
int retVal = a.exec();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user