435 { |
435 { |
436 MakeClear(tile, CLEAR_GRASS, _generating_world ? 3 : 0); |
436 MakeClear(tile, CLEAR_GRASS, _generating_world ? 3 : 0); |
437 MarkTileDirtyByTile(tile); |
437 MarkTileDirtyByTile(tile); |
438 } |
438 } |
439 |
439 |
440 /** Returns trackdirbits in lower two bytes and additional info about track status in upper two bytes |
440 /** Returns information about trackdirs and signal states. |
441 * If there is any trackbit at 'side', return all trackdirbits. |
441 * If there is any trackbit at 'side', return all trackdirbits. |
442 * For TRANSPORT_ROAD, return 0 if there is no roadbit (of given subtype) at given side. |
442 * For TRANSPORT_ROAD, return no trackbits if there is no roadbit (of given subtype) at given side. |
443 * @param tile tile to get info about |
443 * @param tile tile to get info about |
444 * @param mode transport type |
444 * @param mode transport type |
445 * @param sub_mode for TRANSPORT_ROAD, roadtypes to check |
445 * @param sub_mode for TRANSPORT_ROAD, roadtypes to check |
446 * @param side side we are entering from, INVALID_DIAGDIR to return all trackbits |
446 * @param side side we are entering from, INVALID_DIAGDIR to return all trackbits |
447 * @return trackdirbits and other info depending on 'mode' |
447 * @return trackdirbits and other info depending on 'mode' |
448 */ |
448 */ |
449 uint32 GetTileTrackStatus(TileIndex tile, TransportType mode, uint sub_mode, DiagDirection side) |
449 TrackStatus GetTileTrackStatus(TileIndex tile, TransportType mode, uint sub_mode, DiagDirection side) |
450 { |
450 { |
451 return _tile_type_procs[GetTileType(tile)]->get_tile_track_status_proc(tile, mode, sub_mode, side); |
451 return _tile_type_procs[GetTileType(tile)]->get_tile_track_status_proc(tile, mode, sub_mode, side); |
452 } |
452 } |
453 |
453 |
454 void ChangeTileOwner(TileIndex tile, PlayerID old_player, PlayerID new_player) |
454 void ChangeTileOwner(TileIndex tile, PlayerID old_player, PlayerID new_player) |