Changeset - r16203:3f7722773c5c
[Not reviewed]
master
0 2 0
yexo - 14 years ago 2010-10-10 15:33:22
yexo@openttd.org
(svn r20913) -Fix (r19231): [NoAI] give the correct error message if you try to overbuild an opponont road station with your own while using the 0.7 or 1.0 compatibility layer (fanioz)
2 files changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
bin/ai/compat_0.7.nut
Show inline comments
 
@@ -262,7 +262,7 @@ class AIWaypointList extends _AIWaypoint
 
AIRoad._BuildRoadStation <- AIRoad.BuildRoadStation;
 
AIRoad.BuildRoadStation <- function(tile, front, road_veh_type, station_id)
 
{
 
	if (AIRoad.IsRoadStationTile(tile)) return false;
 
	if (AIRoad.IsRoadStationTile(tile) && AICompany.IsMine(AITile.GetOwner(tile))) return false;
 

	
 
	return AIRoad._BuildRoadStation(tile, front, road_veh_type, station_id);
 
}
 
@@ -270,7 +270,7 @@ AIRoad.BuildRoadStation <- function(tile
 
AIRoad._BuildDriveThroughRoadStation <- AIRoad.BuildDriveThroughRoadStation;
 
AIRoad.BuildDriveThroughRoadStation <- function(tile, front, road_veh_type, station_id)
 
{
 
	if (AIRoad.IsRoadStationTile(tile)) return false;
 
	if (AIRoad.IsRoadStationTile(tile) && AICompany.IsMine(AITile.GetOwner(tile))) return false;
 

	
 
	return AIRoad._BuildDriveThroughRoadStation(tile, front, road_veh_type, station_id);
 
}
bin/ai/compat_1.0.nut
Show inline comments
 
@@ -12,7 +12,7 @@ AILog.Info("1.0 API compatability in eff
 
AIRoad._BuildRoadStation <- AIRoad.BuildRoadStation;
 
AIRoad.BuildRoadStation <- function(tile, front, road_veh_type, station_id)
 
{
 
	if (AIRoad.IsRoadStationTile(tile)) return false;
 
	if (AIRoad.IsRoadStationTile(tile) && AICompany.IsMine(AITile.GetOwner(tile))) return false;
 

	
 
	return AIRoad._BuildRoadStation(tile, front, road_veh_type, station_id);
 
}
 
@@ -20,7 +20,7 @@ AIRoad.BuildRoadStation <- function(tile
 
AIRoad._BuildDriveThroughRoadStation <- AIRoad.BuildDriveThroughRoadStation;
 
AIRoad.BuildDriveThroughRoadStation <- function(tile, front, road_veh_type, station_id)
 
{
 
	if (AIRoad.IsRoadStationTile(tile)) return false;
 
	if (AIRoad.IsRoadStationTile(tile) && AICompany.IsMine(AITile.GetOwner(tile))) return false;
 

	
 
	return AIRoad._BuildDriveThroughRoadStation(tile, front, road_veh_type, station_id);
 
}
0 comments (0 inline, 0 general)