[Commits] [wesnoth/wesnoth] 56bdb6: blindfold is removed when control of a side is rec...

GitHub noreply at github.com
Wed Mar 26 04:40:04 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 56bdb6aa055da1d04831ba540f78128f15d9e41d
      https://github.com/wesnoth/wesnoth/commit/56bdb6aa055da1d04831ba540f78128f15d9e41d
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-03-26 (Wed, 26 Mar 2014)

  Changed paths:
    M src/play_controller.hpp
    M src/playmp_controller.cpp
    M src/playmp_controller.hpp
    M src/playsingle_controller.hpp
    M src/playturn.cpp
    M src/replay_controller.hpp

  Log Message:
  -----------
  blindfold is removed when control of a side is received

in blindfold_ii, blindfold was taken off when local side takes control
in this fixup, blindfold is taken off as soon as host gives control of
any side.
to achieve this, playturn.cpp must be able to ask the playcontroller to
remove the blindfold.
we create a virtual method of play_controller, on_not_observer,
which is called whenever this client gets local control of a side
(it becomes ai or human)
on all play_controllers except play_mpcontroller, this does nothing
in play_mpcontroller it calls a "remove_blindfold" function
when a human side takes control, remove_blindfold is still called,
as a precaution.





More information about the Commits mailing list