Make wesnoth.allow_undo still work, even though it was explicitly internal and not meant to be used.

Fixes #8018
This commit is contained in:
Celtic Minstrel 2023-11-04 22:39:58 -04:00
parent b046d93350
commit e3b3d08c3f

View File

@ -30,6 +30,8 @@ if wesnoth.kernel_type() == "Game Lua Kernel" then
end
wesnoth.fire_event = wesnoth.deprecate_api('wesnoth.fire_event', 'wesnoth.game_events.fire', 1, nil, old_fire_event(wesnoth.game_events.fire))
wesnoth.fire_event_by_id = wesnoth.deprecate_api('wesnoth.fire_event_by_id', 'wesnoth.game_events.fire_by_id', 1, nil, old_fire_event(wesnoth.game_events.fire_by_id))
-- This will be deprecated once it's no longer considered experimental
wesnoth.allow_undo = wesnoth.game_events.set_undoable
-- The undo API is still experimental, so move those functions