This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Rail::_GetBridgeNumSlopes(end_a, end_b, res = false) | |
{ | |
local slopes = 0; | |
local ret = {}; | |
ret.rawset(end_a, 0); | |
ret.rawset(end_b, 0); | |
local direction = (end_b - end_a) / AIMap.DistanceManhattan(end_a, end_b); | |
local slope = AITile.GetSlope(end_a); | |
if (!(((slope == AITile.SLOPE_NE || slope == AITile.SLOPE_STEEP_N || slope == AITile.SLOPE_STEEP_E) && direction == 1) || | |
((slope == AITile.SLOPE_SE || slope == AITile.SLOPE_STEEP_S || slope == AITile.SLOPE_STEEP_E) && direction == -AIMap.GetMapSizeX()) || |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
============================================================================================== | |
Editable AI/GS Parameters in the 3 game modes | |
============================================================================================== | |
## Version of OpenTTD | |
2019-01-30-g8334a573 | |
## Expected result | |
Main Menu: | |
- GS config in slot, GS instance active, alive: all parameters editable |