Epoch ship has improper waterline value
Posted: 14 Dec 2010, 12:05
In aseadragon.fbi waterline = 5, while according to movedef min water depth is 15. Fortunately engine clever updates "waterline" value.
Open Source Realtime Strategy Game Engine
https://springrts.com/phpbb/
Code: Select all
if (ud->floater) {
// restrict our depth to our waterline
unit->pos.y = std::max(-ud->waterline, ground->GetHeightReal(unit->pos.x, unit->pos.z));
} else {
unit->pos.y = ground->GetHeightReal(unit->pos.x, unit->pos.z);
}