src/openttd.cpp
changeset 9177 657401e13c0f
parent 9166 b37d9f4017e5
child 9203 55b0289562a8
equal deleted inserted replaced
9176:676d04b1e38a 9177:657401e13c0f
  2429 			v->profit_last_year <<= 8;
  2429 			v->profit_last_year <<= 8;
  2430 			v->running_ticks = 0;
  2430 			v->running_ticks = 0;
  2431 		}
  2431 		}
  2432 	}
  2432 	}
  2433 
  2433 
       
  2434 	if (CheckSavegameVersion(91)) {
       
  2435 		/* Increase HouseAnimationFrame from 5 to 7 bits */
       
  2436 		for (TileIndex t = 0; t < map_size; t++) {
       
  2437 			if (IsTileType(t, MP_HOUSE) && GetHouseType(t) >= NEW_HOUSE_OFFSET) {
       
  2438 				SetHouseAnimationFrame(t, GB(_m[t].m6, 3, 5));
       
  2439 			}
       
  2440 		}
       
  2441 	}
       
  2442 
  2434 	return InitializeWindowsAndCaches();
  2443 	return InitializeWindowsAndCaches();
  2435 }
  2444 }
  2436 
  2445 
  2437 /** Reload all NewGRF files during a running game. This is a cut-down
  2446 /** Reload all NewGRF files during a running game. This is a cut-down
  2438  * version of AfterLoadGame().
  2447  * version of AfterLoadGame().