(svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved
This commit is contained in:
@@ -29,16 +29,11 @@
|
||||
#include "date_func.h"
|
||||
#include "vehicle_func.h"
|
||||
#include "string_func.h"
|
||||
#include "oldpool_func.h"
|
||||
#include "animated_tile_func.h"
|
||||
#include "elrail_func.h"
|
||||
|
||||
#include "table/strings.h"
|
||||
|
||||
DEFINE_OLD_POOL_GENERIC(Station, Station)
|
||||
DEFINE_OLD_POOL_GENERIC(RoadStop, RoadStop)
|
||||
|
||||
|
||||
/**
|
||||
* Check whether the given tile is a hangar.
|
||||
* @param t the tile to of whether it is a hangar.
|
||||
@@ -3200,17 +3195,6 @@ static CommandCost ClearTile_Station(TileIndex tile, DoCommandFlag flags)
|
||||
return CMD_ERROR;
|
||||
}
|
||||
|
||||
void InitializeStations()
|
||||
{
|
||||
/* Clean the station pool and create 1 block in it */
|
||||
_Station_pool.CleanPool();
|
||||
_Station_pool.AddBlockToPool();
|
||||
|
||||
/* Clean the roadstop pool and create 1 block in it */
|
||||
_RoadStop_pool.CleanPool();
|
||||
_RoadStop_pool.AddBlockToPool();
|
||||
}
|
||||
|
||||
static CommandCost TerraformTile_Station(TileIndex tile, DoCommandFlag flags, uint z_new, Slope tileh_new)
|
||||
{
|
||||
if (_settings_game.construction.build_on_slopes && AutoslopeEnabled()) {
|
||||
|
Reference in New Issue
Block a user