We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91eace7 commit 3c6b9a4Copy full SHA for 3c6b9a4
OpenTESArena/src/Game/GameState.cpp
@@ -781,7 +781,8 @@ void GameState::tickGameClock(double dt, Game &game)
781
// Check for changes in exterior music depending on the time.
782
const MapDefinition &activeMapDef = this->getActiveMapDef();
783
const MapType activeMapType = activeMapDef.getMapType();
784
- if ((activeMapType == MapType::City) || (activeMapType == MapType::Wilderness))
+ const Player &player = game.player;
785
+ if ((activeMapType != MapType::Interior) && !player.groundState.isSwimming)
786
{
787
const Clock &dayMusicStartClock = clockLibrary.getClock(ArenaClockUtils::MusicSwitchToDay);
788
const Clock &nightMusicStartClock = clockLibrary.getClock(ArenaClockUtils::MusicSwitchToNight);
0 commit comments