[wesnoth-commits] [wesnoth/wesnoth] 671f32: Fix a Visual Studio compiler warning

Jyrki Vesterinen noreply at github.com
Thu Apr 18 19:24:29 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 671f32aa62e5c5eedfc438fb7a6d17dd11f1cb94
      https://github.com/wesnoth/wesnoth/commit/671f32aa62e5c5eedfc438fb7a6d17dd11f1cb94
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2019-04-18 (Thu, 18 Apr 2019)

  Changed paths:
    M src/units/abilities.cpp

  Log Message:
  -----------
  Fix a Visual Studio compiler warning

Two variables called "name" were in scope simultaneously and one
shadowed the other.


  Commit: b023b818c742cee0bc75460235c9d1088c0b495d
      https://github.com/wesnoth/wesnoth/commit/b023b818c742cee0bc75460235c9d1088c0b495d
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2019-04-18 (Thu, 18 Apr 2019)

  Changed paths:
    M src/sound.cpp

  Log Message:
  -----------
  Fix [music] ms_after= setting fade-out time of *previous* track

It's supposed to set the fade-out time of the track *itself*.

For this, play_music() needs to look at the track which is *being faded
out*, not the one that's *about to start playing*.


Compare: https://github.com/wesnoth/wesnoth/compare/d64dafc500ac...b023b818c742



More information about the Commits mailing list