Comment 11 for bug 1638394

Revision history for this message
xxx-deleted (janosch-peters-deactivatedaccount) wrote :

I pushed a branch with a fix which works for my savegame but after thinking a bit about the whloe thing, I am not sure at all if this is realy a solution in every case.

The owner of the starting field is only needed to fetch the right texture of the road. The field where the road begins might not be visible to the player. In my solution I suspect that the field where the road ends is always visible. But I do not realy think that this proposition holds.

The branch is here:
lp:~janosch-peters/widelands/bug-1638394-render-road

The main problem with this bug is, that we want to know the real owner of the field and not the owner from the players point of view. One way to fix this would be to introduce a field real_owner in FieldsToDraw. Another option would be to pass a parameter in add_road which contains the "real" field or the real field owner of the field.