Explorar o código

[fixed] Incorrect week check in Andrey file caused infinite loop on Friday evenings

KevinSmarts %!s(int64=6) %!d(string=hai) anos
pai
achega
c8d105b903
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      locations/andrey.qsrc

+ 1 - 1
locations/andrey.qsrc

@@ -11,7 +11,7 @@ if $ARGS[0] = '':
 
 	if (young_shop_work = 1 and week = 5 and hour = 20) or (young_shop_work1 = 1 and week = 7 and hour = 15) or (young_shop_work2 = 1 and week = 5 and hour = 15):
 		gs 'andrey', 'regular'
-	elseif hour >= 20 or (week > 4 and hour >= 16):
+	elseif hour >= 20 or (week > 5 and hour >= 16):
 		msg '<center>Andrew M. Sobulyagin says goodbye and leaves. His workday has ended.</center>'
 		gt 'young_shop', 'start'
 	end