mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Added a sanity check to the cycle gun list function
*Top/Down buttons only cycle the gun list in the main/gun list menu
This commit is contained in:
parent
5195271894
commit
874858ebb4
@ -15,4 +15,6 @@
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
|
||||
if (!(GVAR(showMainPage) || GVAR(showGunList))) exitWith {};
|
||||
|
||||
[(GVAR(currentGun) + (count GVAR(gunList)) + _this) % (count GVAR(gunList)), true] call FUNC(change_gun);
|
||||
|
Loading…
Reference in New Issue
Block a user