gamespeed bug
This commit is contained in:
@@ -496,6 +496,7 @@ void mainWindowImpl::callNewGameDialog() {
|
|||||||
newGameDialogImpl *v = new newGameDialogImpl(this);
|
newGameDialogImpl *v = new newGameDialogImpl(this);
|
||||||
v->exec();
|
v->exec();
|
||||||
if (v->result() == QDialog::Accepted ) { startNewLocalGame(v); }
|
if (v->result() == QDialog::Accepted ) { startNewLocalGame(v); }
|
||||||
|
else { startNewLocalGame(); }
|
||||||
}
|
}
|
||||||
// sonst mit gespeicherten Werten starten
|
// sonst mit gespeicherten Werten starten
|
||||||
else { startNewLocalGame(); }
|
else { startNewLocalGame(); }
|
||||||
@@ -524,14 +525,13 @@ void mainWindowImpl::startNewLocalGame(newGameDialogImpl *v) {
|
|||||||
groupBox_right_tools->setDisabled(FALSE);
|
groupBox_right_tools->setDisabled(FALSE);
|
||||||
groupBox_left_tools->setDisabled(FALSE);
|
groupBox_left_tools->setDisabled(FALSE);
|
||||||
|
|
||||||
//positioning Slider
|
|
||||||
horizontalSlider_speed->setValue(guiGameSpeed);
|
|
||||||
|
|
||||||
//get values from local game dialog
|
//get values from local game dialog
|
||||||
if(v) {
|
if(v) {
|
||||||
//Speeds
|
//Speeds
|
||||||
guiGameSpeed = v->spinBox_gameSpeed->value();
|
guiGameSpeed = v->spinBox_gameSpeed->value();
|
||||||
setSpeeds();
|
setSpeeds();
|
||||||
|
//positioning Slider
|
||||||
|
horizontalSlider_speed->setValue(guiGameSpeed);
|
||||||
//Start Game!!!
|
//Start Game!!!
|
||||||
mySession->startGame(v->spinBox_quantityPlayers->value(), v->spinBox_startCash->value(), v->spinBox_smallBlind->value());
|
mySession->startGame(v->spinBox_quantityPlayers->value(), v->spinBox_startCash->value(), v->spinBox_smallBlind->value());
|
||||||
}
|
}
|
||||||
@@ -540,6 +540,8 @@ void mainWindowImpl::startNewLocalGame(newGameDialogImpl *v) {
|
|||||||
//Speeds
|
//Speeds
|
||||||
guiGameSpeed = myConfig->readConfigInt("GameSpeed");
|
guiGameSpeed = myConfig->readConfigInt("GameSpeed");
|
||||||
setSpeeds();
|
setSpeeds();
|
||||||
|
//positioning Slider
|
||||||
|
horizontalSlider_speed->setValue(guiGameSpeed);
|
||||||
//Start Game!!!
|
//Start Game!!!
|
||||||
mySession->startGame(myConfig->readConfigInt("NumberOfPlayers"), myConfig->readConfigInt("StartCash"), myConfig->readConfigInt("SmallBlind"));
|
mySession->startGame(myConfig->readConfigInt("NumberOfPlayers"), myConfig->readConfigInt("StartCash"), myConfig->readConfigInt("SmallBlind"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user