mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-27 17:26:23 +00:00
Add const annotation to new function
(cherry-picked from commit 9f58a8063561a1ce4897fa88c1982e68dece33bc)
This commit is contained in:
parent
4b29bd7fa2
commit
19479d70bd
@ -362,7 +362,7 @@ void play_controller::fire_prestart()
|
||||
gamestate().gamedata_.get_variable("turn_number") = static_cast<int>(turn());
|
||||
}
|
||||
|
||||
void play_controller::refresh_objectives()
|
||||
void play_controller::refresh_objectives() const
|
||||
{
|
||||
const config cfg("side", gui_->viewing_side());
|
||||
gamestate().lua_kernel_->run_wml_action("show_objectives", vconfig(cfg),
|
||||
|
@ -265,7 +265,7 @@ public:
|
||||
virtual void send_to_wesnothd(const config&, const std::string& = "unknown") const { }
|
||||
virtual bool receive_from_wesnothd(config&) const { return false; }
|
||||
/// Reevaluate [show_if] conditions and build a new objectives string.
|
||||
void refresh_objectives();
|
||||
void refresh_objectives() const;
|
||||
void show_objectives() const;
|
||||
|
||||
struct scoped_savegame_snapshot
|
||||
|
Loading…
x
Reference in New Issue
Block a user