[wesnoth-commits] [wesnoth/wesnoth] d3c1cc: Fix #2852: Reset statistics when rewinding a repla...

jostephd noreply at github.com
Mon Mar 25 13:38:01 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: d3c1cc43e71328ff04efc8c144af17f257bdd6ed
      https://github.com/wesnoth/wesnoth/commit/d3c1cc43e71328ff04efc8c144af17f257bdd6ed
  Author: josteph <josteph at fastmail.com>
  Date:   2019-03-25 (Mon, 25 Mar 2019)

  Changed paths:
    M src/playsingle_controller.cpp
    M src/statistics.cpp
    M src/statistics.hpp

  Log Message:
  -----------
  Fix #2852: Reset statistics when rewinding a replay to the beginning.

Currently, while watching a replay of Scenario N, the statistics dialog
has the following options:

- All scenarios
- S1
- S2
- ...
- SN
- SN

The last option shows the statistics of Scenario N from the beginning
through the current point in the replay.  The other options show
end-of-scenario stats of each scenario and the cumulative stats of all
scenarios through the end of SN.

This patch causes the stats shown by the the second SN option to reset
to zero when the "reset replay" ("stop") button is selected.


  Commit: 301aa1da79a642fbe8e971b39d0374c5a93fd6d4
      https://github.com/wesnoth/wesnoth/commit/301aa1da79a642fbe8e971b39d0374c5a93fd6d4
  Author: josteph <josteph at fastmail.com>
  Date:   2019-03-25 (Mon, 25 Mar 2019)

  Changed paths:
    M src/hotkey/hotkey_handler_sp.cpp
    M src/playsingle_controller.cpp
    M src/playsingle_controller.hpp

  Log Message:
  -----------
  Also fix #2852 when using "Back to turn" in a networked MP game.


Compare: https://github.com/wesnoth/wesnoth/compare/5502f7abe030...301aa1da79a6



More information about the Commits mailing list