mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-10 04:59:40 +00:00
Fix bug 6107 (I hope): don't bother going for next track unless music is on.
Also fix a signed warning I introduced earlier.
This commit is contained in:
parent
61af3abad6
commit
2343c6f983
@ -249,7 +249,7 @@ battle_context::battle_context(const gamemap& map, const std::vector<team>& team
|
||||
if (!attacker_stats_) {
|
||||
const attack_type *def = NULL;
|
||||
if (defender_weapon >= 0) {
|
||||
wassert(defender_weapon < defender.attacks().size());
|
||||
wassert(defender_weapon < (int)defender.attacks().size());
|
||||
def = &defender.attacks()[defender_weapon];
|
||||
}
|
||||
wassert(!defender_stats_ && !attacker_combatant_ && !defender_combatant_);
|
||||
|
@ -343,7 +343,8 @@ void pump()
|
||||
resize_dimensions.second = 0;
|
||||
}
|
||||
|
||||
sound::think_about_music();
|
||||
if (preferences::music_on())
|
||||
sound::think_about_music();
|
||||
}
|
||||
|
||||
void raise_process_event()
|
||||
|
Loading…
x
Reference in New Issue
Block a user