File diff r2497:4f8fde59a2e8 → r2498:8dfa040ed505
industry_cmd.c
Show inline comments
 
@@ -1039,13 +1039,13 @@ static void ChopLumberMillTrees(Industry
 
	for(a=1; a!=41; a+=2) {
 
		for(dir=0; dir!=4; dir++) {
 
			j = a;
 
			do {
 
				tile = TILE_MASK(tile);
 
				if (IsTileType(tile, MP_TREES)) {
 
					uint old_player = _current_player;
 
					PlayerID old_player = _current_player;
 
					/* found a tree */
 

	
 
					_current_player = OWNER_NONE;
 
					_industry_sound_ctr = 1;
 
					_industry_sound_tile = tile;
 
					SndPlayTileFx(SND_38_CHAINSAW, tile);
 
@@ -1659,13 +1659,13 @@ static void PlaceInitialIndustry(byte ty
 
	} else {
 
		num = ScaleByMapSize(num);
 
	}
 

	
 
	if (_opt.diff.number_industries != 0)
 
	{
 
		byte old_player = _current_player;
 
		PlayerID old_player = _current_player;
 
		_current_player = OWNER_NONE;
 
		assert(num > 0);
 

	
 
		do {
 
			int i = 2000;
 
			do {
 
@@ -1899,13 +1899,13 @@ static void ChangeIndustryProduction(Ind
 
	}
 
}
 

	
 
void IndustryMonthlyLoop(void)
 
{
 
	Industry *i;
 
	byte old_player = _current_player;
 
	PlayerID old_player = _current_player;
 
	_current_player = OWNER_NONE;
 

	
 
	FOR_ALL_INDUSTRIES(i) {
 
		if (i->xy != 0)
 
			UpdateIndustryStatistics(i);
 
	}