Ver código fonte

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

KevinSmarts 5 anos atrás
pai
commit
e8b9e03102
1 arquivos alterados com 1 adições e 1 exclusões
  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)