Keep cursored menus always centered. Fix #299.

This commit is contained in:
esteldunedain 2015-04-03 20:49:40 -03:00
parent 824448833f
commit a5ff34e1d8

View File

@ -89,7 +89,7 @@ _fnc_renderSelfActions = {
{ {
_action = _x; _action = _x;
_pos = if !(visibleMap) then { _pos = if !(GVAR(useCursorMenu)) then {
(((positionCameraToWorld [0, 0, 0]) call EFUNC(common,positionToASL)) vectorAdd GVAR(selfMenuOffset)) call EFUNC(common,ASLToPosition) (((positionCameraToWorld [0, 0, 0]) call EFUNC(common,positionToASL)) vectorAdd GVAR(selfMenuOffset)) call EFUNC(common,ASLToPosition)
} else { } else {
[0.5, 0.5] [0.5, 0.5]