unit_is_visible_on_layer() still thinks that there's just one layer where the unit may be hiding. It returns TRUE for subsurface units on stealth layer, and vice versa.
This is the root cause for most of the current "server wants to remove unit ... but we don't know about this unit" -errors, as server tries to remove hiding units once for each of the "hiding" layers.
We have other tickets open about "server wants to remove unit..." -errors, but as those predate introduction of the subsurface layer, they must be something else.
unit_is_visible_on_layer() still thinks that there's just one layer where the unit may be hiding. It returns TRUE for subsurface units on stealth layer, and vice versa.
This is the root cause for most of the current "server wants to remove unit ... but we don't know about this unit" -errors, as server tries to remove hiding units once for each of the "hiding" layers.
We have other tickets open about "server wants to remove unit..." -errors, but as those predate introduction of the subsurface layer, they must be something else.