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:
ulteq 2015-04-19 11:43:20 +02:00
parent 5195271894
commit 874858ebb4

View File

@ -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);