fix:录像模式下支持输入负整数

This commit is contained in:
lizhuoyuan committed 2025-02-07 10:38:13 +08:00
1 parent 9a675c0487
commit 0ad2913d89
1 file changed
+1 -1
+1 -1
View File
@@ -1985,7 +1985,7 @@ events.prototype._action_setHeroIcon = function (data, x, y, prefix) {
events.prototype._action_input = function (data, x, y, prefix) {
this.__action_getInput(core.replaceText(data.text, prefix), false, function (value) {
value = Math.abs(parseInt(value) || 0);
value = parseInt(value) || 0;
core.status.route.push("input:" + value);
core.setFlag("input", value);
core.doAction();