diff --git a/code/ryzom/client/src/interface_v3/action_handler_debug.cpp b/code/ryzom/client/src/interface_v3/action_handler_debug.cpp index 74c5542da..5259ae75b 100644 --- a/code/ryzom/client/src/interface_v3/action_handler_debug.cpp +++ b/code/ryzom/client/src/interface_v3/action_handler_debug.cpp @@ -108,6 +108,23 @@ class CAHToggleARKPACSBorders : public IActionHandler }; REGISTER_ACTION_HANDLER (CAHToggleARKPACSBorders, "ark_pacs_borders"); +// *************************************************************************** +class CAHToggleFly : public IActionHandler +{ + virtual void execute (CCtrlBase * /* pCaller */, const string &/* Params */) + { + // Change to AI Mode. + if(UserControls.mode() != CUserControls::AIMode) + UserControls.mode(CUserControls::AIMode); + // Leave the AI Mode. + else + UserEntity->viewMode(UserEntity->viewMode()); + } +}; +// *************************************************************************** +REGISTER_ACTION_HANDLER (CAHToggleFly, "toggle_fly"); + + #if !FINAL_VERSION // ------------------------------------------------------------------------------------------------ class CAHProfile : public IActionHandler @@ -266,22 +283,6 @@ class CAHSwitchConsoleDisplay : public IActionHandler // *************************************************************************** REGISTER_ACTION_HANDLER (CAHSwitchConsoleDisplay, "switch_console_display"); -// *************************************************************************** -class CAHToggleFly : public IActionHandler -{ - virtual void execute (CCtrlBase * /* pCaller */, const string &/* Params */) - { - // Change to AI Mode. - if(UserControls.mode() != CUserControls::AIMode) - UserControls.mode(CUserControls::AIMode); - // Leave the AI Mode. - else - UserEntity->viewMode(UserEntity->viewMode()); - } -}; -// *************************************************************************** -REGISTER_ACTION_HANDLER (CAHToggleFly, "toggle_fly"); - // *************************************************************************** class CAHReloadLandscapeIg : public IActionHandler {