[Commits] [wesnoth/wesnoth] 1d4c0f: remove unneeded code in playcampaign.cpp

GitHub noreply at github.com
Mon Jun 16 18:05:08 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 1d4c0f2df81718893dae2c8e60ba26335f3502b0
      https://github.com/wesnoth/wesnoth/commit/1d4c0f2df81718893dae2c8e60ba26335f3502b0
  Author: gfgtdf <tischpapier at gmail.com>
  Date:   2014-06-16 (Mon, 16 Jun 2014)

  Changed paths:
    M src/playcampaign.cpp

  Log Message:
  -----------
  remove unneeded code in playcampaign.cpp

the carryover code now reads the "next_underlying_unit_id" and [end_level_data] directly form the last snapshot which is expicitly created before the playsingle_controller object is destroyed (in playcampaign.cpp), so no reason to write them here.

also the state_of_game.carryover_sides_start["next_scenario"] = resources::gamedata->next_scenario(); is not needed since show_carryover_message doesn't do this neigher (it's done done by convert to start save later).





More information about the Commits mailing list