Air unit flying height above water
For flying above water we use the maps water height + airHeight if it is higher than the normal height..
This commit is contained in:
parent
c7c18bd506
commit
bbd7df55c9
|
@ -3773,6 +3773,10 @@ float Unit::computeHeight(const Vec2i &pos) const {
|
|||
}
|
||||
}
|
||||
}
|
||||
// for flying above water we use the water height + airHeight if it is higher than the normal height..
|
||||
if( map->getWaterLevel()+airHeight>height) {
|
||||
height=map->getWaterLevel()+airHeight;
|
||||
}
|
||||
}
|
||||
|
||||
return height;
|
||||
|
|
Loading…
Reference in New Issue