From 3103fe2561d4eb351afaa94f4e4aafb809b72d60 Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Fri, 17 Apr 2015 12:48:58 +1100 Subject: [PATCH] Rename [store_relative_dir] to [store_relative_direction] --- RELEASE_NOTES | 2 +- src/game_events/action_wml.cpp | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/RELEASE_NOTES b/RELEASE_NOTES index 31b978af6fed..bdba96505645 100644 --- a/RELEASE_NOTES +++ b/RELEASE_NOTES @@ -261,7 +261,7 @@ Additionally, you can use "log-debug=scripting/lua" at command line, and all lua [*] [elseif] inside [if] simplifies wml program flow. [*] [do_command] allows to execute attacks, moves, recalls, recruits .. from wml having the same effect as if a player had ordered them. [*] [put_to_recall_list] -[*] [store_relative_dir] +[*] [store_relative_direction] [*] [remove_event] [/list] [/section] diff --git a/src/game_events/action_wml.cpp b/src/game_events/action_wml.cpp index c9db2293c8d7..3d4505db3be7 100644 --- a/src/game_events/action_wml.cpp +++ b/src/game_events/action_wml.cpp @@ -1456,21 +1456,21 @@ WML_HANDLER_FUNCTION(sound_source, /*event_info*/, cfg) } } -/// Store the relative direction from one hex to antoher in a WML variable. +/// Store the relative direction from one hex to another in a WML variable. /// This is mainly useful as a diagnostic tool, but could be useful /// for some kind of scenario. -WML_HANDLER_FUNCTION(store_relative_dir, /*event_info*/, cfg) +WML_HANDLER_FUNCTION(store_relative_direction, /*event_info*/, cfg) { if (!cfg.child("source")) { - WRN_NG << "No source in [store_relative_dir]" << std::endl; + WRN_NG << "No source in [store_relative_direction]" << std::endl; return; } if (!cfg.child("destination")) { - WRN_NG << "No destination in [store_relative_dir]" << std::endl; + WRN_NG << "No destination in [store_relative_direction]" << std::endl; return; } if (!cfg.has_attribute("variable")) { - WRN_NG << "No variable in [store_relative_dir]" << std::endl; + WRN_NG << "No variable in [store_relative_direction]" << std::endl; return; } @@ -1487,7 +1487,7 @@ WML_HANDLER_FUNCTION(store_relative_dir, /*event_info*/, cfg) } catch(const invalid_variablename_exception&) { - ERR_NG << "Cannot do [store_relative_dir] with invalid destination variable: " << variable << " with " << cfg.get_config().debug() << std::endl; + ERR_NG << "Cannot do [store_relative_direction] with invalid destination variable: " << variable << " with " << cfg.get_config().debug() << std::endl; } }