src/newgrf.cpp
changeset 6686 9e8b32366bd6
parent 6684 2f8288bdd427
child 6691 f9adbb0be102
equal deleted inserted replaced
6685:00490513d7b1 6686:9e8b32366bd6
  4806 
  4806 
  4807 void InitDepotWindowBlockSizes();
  4807 void InitDepotWindowBlockSizes();
  4808 
  4808 
  4809 static void AfterLoadGRFs()
  4809 static void AfterLoadGRFs()
  4810 {
  4810 {
       
  4811 	/* Update the bitmasks for the vehicle lists */
       
  4812 	Player *p;
       
  4813 	FOR_ALL_PLAYERS(p) {
       
  4814 		p->avail_railtypes = GetPlayerRailtypes(p->index);
       
  4815 		p->avail_roadtypes = GetPlayerRoadtypes(p->index);
       
  4816 	}
       
  4817 
  4811 	/* Pre-calculate all refit masks after loading GRF files. */
  4818 	/* Pre-calculate all refit masks after loading GRF files. */
  4812 	CalculateRefitMasks();
  4819 	CalculateRefitMasks();
  4813 
  4820 
  4814 	/* Set the block size in the depot windows based on vehicle sprite sizes */
  4821 	/* Set the block size in the depot windows based on vehicle sprite sizes */
  4815 	InitDepotWindowBlockSizes();
  4822 	InitDepotWindowBlockSizes();