src/openttd.cpp
changeset 8057 9a378e86100b
parent 8029 6cc607fe1d3d
child 8063 d3fa4e88f087
equal deleted inserted replaced
8056:ae85cb9a770d 8057:9a378e86100b
  2252 				if (groundType != TREE_GROUND_SNOW_DESERT) SetTreeGroundDensity(t, groundType, 3);
  2252 				if (groundType != TREE_GROUND_SNOW_DESERT) SetTreeGroundDensity(t, groundType, 3);
  2253 			}
  2253 			}
  2254 		}
  2254 		}
  2255 	}
  2255 	}
  2256 
  2256 
       
  2257 	/* Update go to buoy orders because they are just waypoints */
       
  2258 	if (CheckSavegameVersion(84)) {
       
  2259 		Order *order;
       
  2260 		FOR_ALL_ORDERS(order) {
       
  2261 			if (order->type == OT_GOTO_STATION && GetStation(order->dest)->IsBuoy()) {
       
  2262 				order->flags = 0;
       
  2263 			}
       
  2264 		}
       
  2265 	}
       
  2266 
  2257 	return InitializeWindowsAndCaches();
  2267 	return InitializeWindowsAndCaches();
  2258 }
  2268 }
  2259 
  2269 
  2260 /** Reload all NewGRF files during a running game. This is a cut-down
  2270 /** Reload all NewGRF files during a running game. This is a cut-down
  2261  * version of AfterLoadGame().
  2271  * version of AfterLoadGame().