Skip to content

Commit

Permalink
Set default waterline for hoevrcraft.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcushutchings committed Jan 28, 2024
1 parent 924043b commit ffa4baa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions rts/Sim/MoveTypes/MoveDefHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,8 @@ MoveDef::MoveDef(const LuaTable& moveDefTable): MoveDef() {
defaultWaterline = xsize * SQUARE_SIZE;
} else if (speedModClass == MoveDef::Ship) {
defaultWaterline = 1;
} else if (speedModClass == MoveDef::Hover) {
defaultWaterline = 0;
}

height = std::max(1, moveDefTable.GetInt("height", defaultHeight));
Expand Down
3 changes: 1 addition & 2 deletions rts/Sim/MoveTypes/MoveMath/MoveMath.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ namespace MoveTypes {
{}

CheckCollisionQuery(const MoveDef* refMoveDef)
: unit(nullptr)
, moveDef(refMoveDef)
: moveDef(refMoveDef)
{}

bool HasPhysicalStateBit(unsigned int bit) const { return ((physicalState & bit) != 0); }
Expand Down

0 comments on commit ffa4baa

Please sign in to comment.