mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-04 01:41:30 +00:00
Fix #2850: [modify_side] share_vision=yes doesn't do anything
Thanks to @gfgtdf for the suggested fix that works well. (cherry-picked from commit 82e04ab7611b8c8458e70f66c49a8032e1c8469c)
This commit is contained in:
parent
32da54b059
commit
c6b7586f6f
@ -391,9 +391,13 @@ public:
|
||||
void set_share_vision(const std::string& vision_status) {
|
||||
info_.share_vision = SHARE_VISION::ALL;
|
||||
info_.share_vision.parse(vision_status);
|
||||
clear_caches();
|
||||
}
|
||||
|
||||
void set_share_vision(SHARE_VISION vision_status) { info_.share_vision = vision_status; }
|
||||
void set_share_vision(SHARE_VISION vision_status) {
|
||||
info_.share_vision = vision_status;
|
||||
clear_caches();
|
||||
}
|
||||
|
||||
void handle_legacy_share_vision(const config& cfg)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user