src/newgrf.cpp
changeset 7182 644a1d06f2be
parent 7180 6ecf06dd7299
child 7187 f7dc3204d457
equal deleted inserted replaced
7181:f966d75af3a6 7182:644a1d06f2be
  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();