Browse Source

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

KevinSmarts 4 years ago
parent
commit
e8b9e03102
1 changed files with 1 additions and 1 deletions
  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)