Move game paused check from Module into Game
This commit is contained in:
parent
93996accf2
commit
fb8bf67aaf
2 changed files with 3 additions and 6 deletions
|
@ -519,12 +519,9 @@ void Game::update() {
|
|||
updateCamera(dt);
|
||||
|
||||
bool updModule = !_video && _module && (_screen == GameScreen::InGame || _screen == GameScreen::Conversation);
|
||||
if (updModule) {
|
||||
if (updModule && !_paused) {
|
||||
_module->update(dt);
|
||||
|
||||
if (!_paused) {
|
||||
_combat.update(dt);
|
||||
}
|
||||
_combat.update(dt);
|
||||
}
|
||||
|
||||
GUI *gui = getScreenGUI();
|
||||
|
|
|
@ -264,7 +264,7 @@ void Module::onPlaceableClick(const shared_ptr<Placeable> &placeable) {
|
|||
}
|
||||
|
||||
void Module::update(float dt) {
|
||||
if (!_game->isPaused() && _game->cameraType() == CameraType::ThirdPerson) {
|
||||
if (_game->cameraType() == CameraType::ThirdPerson) {
|
||||
_player->update(dt);
|
||||
}
|
||||
_area->update(dt);
|
||||
|
|
Loading…
Reference in a new issue