mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2024-12-25 21:59:30 +01:00
GameSignals: simplify slightly
This commit is contained in:
parent
99e7628fed
commit
f37b3f7d84
1 changed files with 2 additions and 3 deletions
|
@ -21,7 +21,6 @@
|
|||
#include "game_signals.h"
|
||||
|
||||
#include "public_game.h"
|
||||
#include "history.h"
|
||||
#include "encoding.h"
|
||||
#include "debug.h"
|
||||
|
||||
|
@ -70,9 +69,9 @@ void GameSignals::notifyGameUpdated()
|
|||
emit newTurn(currTurn);
|
||||
}
|
||||
// Emit the gameRackChanged() signal if needed
|
||||
if (isLastTurn && m_game->getHistory().getCurrentRack().toString(PlayedRack::RACK_EXTRA) != m_lastGameRack.toString(PlayedRack::RACK_EXTRA))
|
||||
if (isLastTurn && m_game->getCurrentRack().toString(PlayedRack::RACK_EXTRA) != m_lastGameRack.toString(PlayedRack::RACK_EXTRA))
|
||||
{
|
||||
m_lastGameRack = m_game->getHistory().getCurrentRack();
|
||||
m_lastGameRack = m_game->getCurrentRack();
|
||||
LOG_DEBUG("Emitting gameRackChanged(" << lfw(m_lastGameRack.toString()) << ")");
|
||||
emit gameRackChanged(m_lastGameRack);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue