[Commits] [wesnoth/wesnoth] 3c9700: blindfold is removed when control of a side is rec...
GitHub
noreply at github.com
Wed Mar 26 04:53:12 UTC 2014
Branch: refs/heads/1.12
Home: https://github.com/wesnoth/wesnoth
Commit: 3c970047cfc5c1f01e78f5725bb81ee190f140dd
https://github.com/wesnoth/wesnoth/commit/3c970047cfc5c1f01e78f5725bb81ee190f140dd
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