Skip to content

Commit fc75108

Browse files
committed
ignore values over 24
i don't care if you want to make godzilla, the engine doesn't support units over 24 voxels high. i appreciate that you modders want to push the limits, but they're called limits for a reason.
1 parent b3340a2 commit fc75108

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Savegame/BattleUnit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1868,7 +1868,7 @@ bool BattleUnit::isInExitArea(SpecialTileType stt) const
18681868
*/
18691869
int BattleUnit::getHeight() const
18701870
{
1871-
return isKneeled()?getKneelHeight():getStandHeight();
1871+
return std::min(24, isKneeled()?getKneelHeight():getStandHeight());
18721872
}
18731873

18741874
/**

0 commit comments

Comments
 (0)