File diff r7228:413373abc46d → r7229:58b7db9e5145
src/newgrf.cpp
Show inline comments
 
@@ -1744,61 +1744,61 @@ static bool IndustrytilesChangeInfo(uint
 
					return false;
 
				}
 

	
 
				tsp->grf_prop.override = ovrid;
 
				_industile_mngr.Add(indtid + i, ovrid);
 
			} break;
 

	
 
			case 0x0A: // Tile acceptance
 
			case 0x0B:
 
			case 0x0C: {
 
				uint16 acctp = grf_load_word(&buf);
 
				tsp->accepts_cargo[prop - 0x0A] = GetCargoTranslation(GB(acctp, 0, 8), _cur_grffile);
 
				tsp->acceptance[prop - 0x0A] = GetCargoTranslation(GB(acctp, 8, 8), _cur_grffile);
 
			} break;
 

	
 
			case 0x0D: // Land shape flags
 
				tsp->slopes_refused = (Slope)grf_load_byte(&buf);
 
				break;
 

	
 
			case 0x0E: // Callback flags
 
				tsp->callback_flags = grf_load_byte(&buf);
 
				break;
 

	
 
			case 0x0F: // Animation information
 
				grf_load_word(&buf); // TODO
 
				tsp->animation_info = grf_load_word(&buf);
 
				break;
 

	
 
			case 0x10: // Animation speed
 
				grf_load_byte(&buf); // TODO
 
				tsp->animation_speed = grf_load_byte(&buf);
 
				break;
 

	
 
			case 0x11: // Triggers for callback 25
 
				grf_load_byte(&buf); // TODO
 
				tsp->animation_triggers = grf_load_byte(&buf);
 
				break;
 

	
 
			case 0x12: // Special flags
 
				grf_load_byte(&buf); // TODO
 
				tsp->animation_special_flags = grf_load_byte(&buf);
 
				break;
 

	
 
			default:
 
				ret = true;
 
				break;
 
		}
 
	}
 

	
 
	*bufp = buf;
 
	return ret;
 
}
 

	
 
static bool IndustriesChangeInfo(uint indid, int numinfo, int prop, byte **bufp, int len)
 
{
 
	byte *buf = *bufp;
 
	bool ret = false;
 

	
 
	if (indid + numinfo > NUM_INDUSTRYTYPES) {
 
		grfmsg(1, "IndustriesChangeInfo: Too many industries loaded (%u), max (%u). Ignoring.", indid + numinfo, NUM_INDUSTRYTYPES);
 
		return false;
 
	}
 

	
 
	grfmsg(1, "IndustriesChangeInfo: newid %u", indid);