Two step initialization for engine. First step: Create and initialize objects (constructor). Second step: Start the engine, update the UI.
This commit is contained in:
@@ -34,8 +34,8 @@
|
||||
#include "playerinterface.h"
|
||||
#include "boardinterface.h"
|
||||
|
||||
#include "handinterface.h"
|
||||
#include "game.h"
|
||||
#include "handinterface.h"
|
||||
#include "game.h"
|
||||
#include "session.h"
|
||||
|
||||
#include "log.h"
|
||||
@@ -2037,7 +2037,9 @@ void mainWindowImpl::showMyCards() {
|
||||
|
||||
void mainWindowImpl::startNewHand() {
|
||||
|
||||
if( !breakAfterActualHand){ mySession->getCurrentGame()->startHand();
|
||||
if( !breakAfterActualHand){
|
||||
mySession->getCurrentGame()->initHand();
|
||||
mySession->getCurrentGame()->startHand();
|
||||
}
|
||||
else {
|
||||
pushButton_break->setDisabled(FALSE);
|
||||
|
||||
Reference in New Issue
Block a user