fix index control
This commit is contained in:
		
							parent
							
								
									757bac6277
								
							
						
					
					
						commit
						9639a4e3cb
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -74,7 +74,8 @@ def _apply(index, target, arg, func): | |||
|         print("{} {} {} {}".format(index, func.__name__, target, arg)) | ||||
|         return func(target, arg, index) | ||||
|     elif type(arg) is str and arg in this.values: | ||||
|         print("{} {} {} {}".format(index, func.__name__, target, this.values[arg])) | ||||
|         print("{} {} {} {}".format( | ||||
|             index, func.__name__, target, this.values[arg])) | ||||
|         return func(target, this.values[arg], index) | ||||
| 
 | ||||
| 
 | ||||
|  | @ -126,7 +127,7 @@ def pat(index, tick, previous_values): | |||
|                 if this.instructions[name] != None: | ||||
|                     jump = apply(i, targets, args, this.instructions[name]) | ||||
|                     print("{} {} {}".format(jump, i, len(this.pattern))) | ||||
|                     if jump != i and jump < len(this.pattern) - 1: | ||||
|                     if jump != i and jump <= len(this.pattern): | ||||
|                         i = jump - 1 | ||||
|         r = this.values["r"] | ||||
|         g = this.values["g"] | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue