fix issue where building stats don't update while the building is kept selected
This commit is contained in:
@@ -45,6 +45,9 @@ MainWindow::MainWindow(Simulation* sim, const GameConfig* config,
|
||||
connect(m_gameWorldView, SIGNAL(stateUpdated(Tick, int, double)),
|
||||
this, SLOT(onStateUpdated(Tick, int, double))); // for affordability
|
||||
|
||||
connect(m_gameWorldView, SIGNAL(stateUpdated(Tick, int, double)),
|
||||
m_selectedBuildingPanel, SLOT(onStateUpdated(Tick, int, double)));
|
||||
|
||||
connect(m_gameWorldView, SIGNAL(gameOver()),
|
||||
this, SLOT(onGameOver()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user