whoward69
DLL Minion
pPlot:IsRiverCrossing(DirectionTypes) is bugged for a river flowing out of a lake
For the plot with the archer, pPlot:IsWOfRiver() and pPlot:GetRiverEFlowDirection() both report the correct values (true and south respectively) but pPlot:IsRiverCrossing(EAST) incorrectly reports false.
For the plot with the warrior, everything is correct
I suspect the UI code to draw headwaters/outflows for rivers is "fixing" the internal plot data somewhere, but can't track it down in the C++ code.
Probably only of interest if you are trying to work out a river connection algorithm
For the plot with the archer, pPlot:IsWOfRiver() and pPlot:GetRiverEFlowDirection() both report the correct values (true and south respectively) but pPlot:IsRiverCrossing(EAST) incorrectly reports false.
For the plot with the warrior, everything is correct
I suspect the UI code to draw headwaters/outflows for rivers is "fixing" the internal plot data somewhere, but can't track it down in the C++ code.
Probably only of interest if you are trying to work out a river connection algorithm

Code:
> FlowDirectionTypes.FLOWDIRECTION_SOUTH
3
> pPlot = Map.GetPlot(15, 10)
> pPlot:GetUnit(0):GetName()
Archer
> pPlot:IsWOfRiver()
true
> pPlot:GetRiverEFlowDirection()
3
> print(pPlot:IsRiverCrossing(DirectionTypes.DIRECTION_EAST))
WorldView: [COLOR="Red"][B][SIZE="3"]false[/SIZE][/B][/COLOR]
> pPlot = Map.GetPlot(14, 9)
> pPlot:GetUnit(0):GetName()
Warrior
> pPlot:IsWOfRiver()
true
> pPlot:GetRiverEFlowDirection()
3
> print(pPlot:IsRiverCrossing(DirectionTypes.DIRECTION_EAST))
WorldView: true