mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-15 10:39:10 +00:00
(svn r19231) -Feature: Allow overbuilding of road stops.
This commit is contained in:
@@ -258,3 +258,19 @@ class AIWaypointList extends _AIWaypointList {
|
||||
::_AIWaypointList.constructor(AIWaypoint.WAYPOINT_RAIL);
|
||||
}
|
||||
}
|
||||
|
||||
AIRoad._BuildRoadStation <- AIRoad.BuildRoadStation;
|
||||
AIRoad.BuildRoadStation <- function(tile, front, road_veh_type, station_id)
|
||||
{
|
||||
if (AIRoad.IsRoadStationTile(tile)) return false;
|
||||
|
||||
return AIRoad._BuildRoadStation(tile, front, road_veh_type, station_id);
|
||||
}
|
||||
|
||||
AIRoad._BuildDriveThroughRoadStation <- AIRoad.BuildDriveThroughRoadStation;
|
||||
AIRoad.BuildDriveThroughRoadStation <- function(tile, front, road_veh_type, station_id)
|
||||
{
|
||||
if (AIRoad.IsRoadStationTile(tile)) return false;
|
||||
|
||||
return AIRoad._BuildDriveThroughRoadStation(tile, front, road_veh_type, station_id);
|
||||
}
|
||||
|
@@ -7,5 +7,20 @@
|
||||
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/* Enable when adding the first compatability code:
|
||||
* AILog.Info("1.0 API compatability in effect"); */
|
||||
AILog.Info("1.0 API compatability in effect.");
|
||||
|
||||
AIRoad._BuildRoadStation <- AIRoad.BuildRoadStation;
|
||||
AIRoad.BuildRoadStation <- function(tile, front, road_veh_type, station_id)
|
||||
{
|
||||
if (AIRoad.IsRoadStationTile(tile)) return false;
|
||||
|
||||
return AIRoad._BuildRoadStation(tile, front, road_veh_type, station_id);
|
||||
}
|
||||
|
||||
AIRoad._BuildDriveThroughRoadStation <- AIRoad.BuildDriveThroughRoadStation;
|
||||
AIRoad.BuildDriveThroughRoadStation <- function(tile, front, road_veh_type, station_id)
|
||||
{
|
||||
if (AIRoad.IsRoadStationTile(tile)) return false;
|
||||
|
||||
return AIRoad._BuildDriveThroughRoadStation(tile, front, road_veh_type, station_id);
|
||||
}
|
||||
|
@@ -7259,7 +7259,7 @@
|
||||
BuildRoadStation(): false
|
||||
BuildRoadStation(): false
|
||||
BuildRoadStation(): true
|
||||
BuildRoadStation(): false
|
||||
BuildRoadStation(): true
|
||||
IsStationTile(): true
|
||||
IsStationTile(): false
|
||||
HasRoadType(Road): true
|
||||
@@ -8452,11 +8452,11 @@
|
||||
14 => 1
|
||||
12 => 1
|
||||
Age ListDump:
|
||||
14 => 1
|
||||
13 => 1
|
||||
12 => 1
|
||||
17 => 0
|
||||
16 => 0
|
||||
14 => 0
|
||||
13 => 0
|
||||
12 => 0
|
||||
MaxAge ListDump:
|
||||
16 => 10980
|
||||
14 => 10980
|
||||
@@ -8465,10 +8465,10 @@
|
||||
12 => 5490
|
||||
AgeLeft ListDump:
|
||||
16 => 10980
|
||||
14 => 10980
|
||||
14 => 10979
|
||||
17 => 7320
|
||||
13 => 5490
|
||||
12 => 5490
|
||||
13 => 5489
|
||||
12 => 5489
|
||||
CurrentSpeed ListDump:
|
||||
12 => 21
|
||||
17 => 0
|
||||
@@ -8486,7 +8486,7 @@
|
||||
16 => 0
|
||||
14 => 0
|
||||
13 => 0
|
||||
12 => 0
|
||||
12 => -1
|
||||
ProfitLastYear ListDump:
|
||||
17 => 0
|
||||
16 => 0
|
||||
|
Reference in New Issue
Block a user