Skip to content

Commit

Permalink
Merge pull request #1338 from acemod/kestrelPersistentRefHeading
Browse files Browse the repository at this point in the history
Persistent reference heading for the Kestrel 4500.
  • Loading branch information
ulteq committed May 21, 2015
2 parents 90ffee4 + 24b2fea commit c4bd97c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions addons/kestrel4500/functions/fnc_restoreUserData.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@
#include "script_component.hpp"

GVAR(Menu) = 0 max (profileNamespace getVariable ["ACE_Kestrel4500_menu", 0]) min ((count GVAR(Menus)) - 1);
GVAR(RefHeading) = 0 max (profileNamespace getVariable ["ACE_Kestrel4500_RefHeading", 0]) min 359;
1 change: 1 addition & 0 deletions addons/kestrel4500/functions/fnc_storeUserData.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@
#include "script_component.hpp"

profileNamespace setVariable ["ACE_Kestrel4500_menu", GVAR(menu)];
profileNamespace setVariable ["ACE_Kestrel4500_RefHeading", GVAR(RefHeading)];

0 comments on commit c4bd97c

Please sign in to comment.