Преглед изворни кода

[fixes] Test for time input too complex and not working, changed it to a simple ISNUM check

KevinSmarts пре 5 година
родитељ
комит
e8b9e03102
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      locations/obj_din.qsrc

+ 1 - 1
locations/obj_din.qsrc

@@ -2436,7 +2436,7 @@ if $ARGS[0] = 'wait':
 	waiting = 0
 	if $waitStr = '':
 		waiting = 15
-	elseif strcomp($waitStr, '\d\d:\d\d'):
+	elseif isnum($waitStr) = 0:
 		waiting = val(strfind($waitStr, '(\d\d):\d\d', 1)) * 60 + val(strfind($waitStr, '\d\d:(\d\d)', 1)) - minut - hour * 60
 	else
 		waiting = val($waitStr)