Skip to content

Commit

Permalink
fix: some adjustments and dump to v0.5.13 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
Joker2770 committed Apr 11, 2023
1 parent d4f21ea commit 65f8d77
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ void MainWindow::OnActionStart()
{
disconnect(this->m_manager->m_engine_1, SIGNAL(responsed_2_pos(int, int, int, int)), this, SLOT(OnP1Responsed2Pos(int, int, int, int)));
disconnect(this->m_manager->m_engine_1, SIGNAL(responsed_3_pos(int, int, int, int, int, int)), this, SLOT(OnP1Responsed3Pos(int, int, int, int, int, int)));
disconnect(this->m_manager->m_engine_1, SIGNAL(responsed_swap()), this, SLOT(OnP1ResponsedSwap));
disconnect(this->m_manager->m_engine_1, SIGNAL(responsed_swap()), this, SLOT(OnP1ResponsedSwap()));
}

disconnect(this->m_manager->m_engine_1, SIGNAL(responsed_pos(int, int)), this, SLOT(OnP1PlaceStone(int, int)));
Expand All @@ -1081,7 +1081,7 @@ void MainWindow::OnActionStart()
{
disconnect(this->m_manager->m_engine_2, SIGNAL(responsed_2_pos(int, int, int, int)), this, SLOT(OnP2Responsed2Pos(int, int, int, int)));
disconnect(this->m_manager->m_engine_2, SIGNAL(responsed_3_pos(int, int, int, int, int, int)), this, SLOT(OnP2Responsed3Pos(int, int, int, int, int, int)));
disconnect(this->m_manager->m_engine_2, SIGNAL(responsed_swap()), this, SLOT(OnP2ResponsedSwap));
disconnect(this->m_manager->m_engine_2, SIGNAL(responsed_swap()), this, SLOT(OnP2ResponsedSwap()));
}

disconnect(this->m_manager->m_engine_2, SIGNAL(responsed_pos(int, int)), this, SLOT(OnP2PlaceStone(int, int)));
Expand Down Expand Up @@ -1795,7 +1795,7 @@ void MainWindow::OnActionPlayerSetting()

void MainWindow::OnActionVer()
{
const QString strVerNum = "Ver Num: 0.5.08\n";
const QString strVerNum = "Ver Num: 0.5.13\n";
QString strBuildTime = "Build at ";
strBuildTime.append(__TIMESTAMP__);
strBuildTime.append("\n");
Expand Down Expand Up @@ -2515,7 +2515,7 @@ void MainWindow::OnP1Responsed3Pos(int x1, int y1, int x2, int y2, int x3, int y

void MainWindow::OnP1ResponsedSwap()
{
if ((this->mState == GAME_STATE::PLAYING) && this->m_bSwap2Board && ((this->mBoard->getVRecord().size() == 2) || (this->mBoard->getVRecord().size() == 5)))
if ((this->mState == GAME_STATE::PLAYING) && this->m_bSwap2Board && ((this->mBoard->getVRecord().size() == 3) || (this->mBoard->getVRecord().size() == 5)))
{
STONECOLOR cTmp = this->m_manager->m_p1->m_color;
this->m_manager->m_p1->m_color = this->m_manager->m_p2->m_color;
Expand Down Expand Up @@ -2820,7 +2820,7 @@ void MainWindow::OnP2Responsed3Pos(int x1, int y1, int x2, int y2, int x3, int y

void MainWindow::OnP2ResponsedSwap()
{
if ((this->mState == GAME_STATE::PLAYING) && this->m_bSwap2Board && ((this->mBoard->getVRecord().size() == 2) || (this->mBoard->getVRecord().size() == 5)))
if ((this->mState == GAME_STATE::PLAYING) && this->m_bSwap2Board && ((this->mBoard->getVRecord().size() == 3) || (this->mBoard->getVRecord().size() == 5)))
{
STONECOLOR cTmp = this->m_manager->m_p1->m_color;
this->m_manager->m_p1->m_color = this->m_manager->m_p2->m_color;
Expand Down

0 comments on commit 65f8d77

Please sign in to comment.