src/disaster_cmd.cpp
changeset 5680 51eae72328c9
parent 5601 d58f82901b2f
child 5694 3ea0817c274f
equal deleted inserted replaced
5679:39399b02337f 5680:51eae72328c9
   475 	} else if (v->current_order.dest == 0) {
   475 	} else if (v->current_order.dest == 0) {
   476 		int x,y;
   476 		int x,y;
   477 		TileIndex tile;
   477 		TileIndex tile;
   478 		uint ind;
   478 		uint ind;
   479 
   479 
   480 		x = v->x_pos - 15 * TILE_SIZE;
   480 		x = v->x_pos + (15 * TILE_SIZE);
   481 		y = v->y_pos;
   481 		y = v->y_pos;
   482 
   482 
   483 		if ( (uint)x > MapMaxX() * TILE_SIZE - 1)
   483 		if ( (uint)x > MapMaxX() * TILE_SIZE - 1)
   484 			return;
   484 			return;
   485 
   485