fix
This commit is contained in:
		
							parent
							
								
									0773cd4d14
								
							
						
					
					
						commit
						743e87e9b1
					
				
							
								
								
									
										4
									
								
								w/w.c
								
								
								
								
							
							
						
						
									
										4
									
								
								w/w.c
								
								
								
								
							| 
						 | 
				
			
			@ -127,6 +127,7 @@ char tileonmap(char tile)
 | 
			
		|||
	case TILE_VISITED:   return ' '; // already visited
 | 
			
		||||
	case TILE_INIT:      return '.'; // not yet initialized by dfs
 | 
			
		||||
	}
 | 
			
		||||
	return '!';
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
char charatpos(int x, int y)
 | 
			
		||||
| 
						 | 
				
			
			@ -404,6 +405,7 @@ void forward()
 | 
			
		|||
			state.position.x -= 2;
 | 
			
		||||
			break;
 | 
			
		||||
		}
 | 
			
		||||
		// todo not if start
 | 
			
		||||
		setatpos(state.position.x, state.position.y, TILE_VISITED);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -831,7 +833,7 @@ void update(char* command)
 | 
			
		|||
				{
 | 
			
		||||
					state.hero.gold -= item.price;
 | 
			
		||||
					state.inventory[i].count++;
 | 
			
		||||
					debugoutput("%d\n", item.count);
 | 
			
		||||
					// debugoutput("%d\n", item.count);
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue