1 Commits

Author SHA1 Message Date
Iris Morelle
3e3cd06121 units: Limit energy bar sizes to the game tile size
Because of the move to hardware rendering in commit
afd6baa7cf1685610c72305f5c9f989078462dff, some relevant info
was lost that was previously used to limit bar height in
particular.

This patch re-adds a dimension check and additionally ensures
that the bar width doesn't exceed the tile size either.

Fixes #7171.
2023-01-20 11:17:22 +01:00