Skip to content

Commit d59cdcd

Browse files
committed
fix typo
1 parent 94609d2 commit d59cdcd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Misc/Bugfixes.ClampTacticalPos.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class TacticalClass;
2525
// Fixes glitches if the map size is smaller than the screen resolution
2626
// Author: Belonit
2727
static constexpr float paddingTopInCell = 5;
28-
static constexpr float paddingBottompInCell = 4.5;
28+
static constexpr float paddingBottomInCell = 4.5;
2929

3030
bool __fastcall Tactical_ClampTacticalPos(TacticalClass* pThis, void*, Point2D* tacticalPos)
3131
{
@@ -68,7 +68,7 @@ bool __fastcall Tactical_ClampTacticalPos(TacticalClass* pThis, void*, Point2D*
6868
{
6969
const int yMax = Math::max(
7070
yMin,
71-
yMin + (Unsorted::CellHeightInPixels * pMapVisibleRect->Height) - pSurfaceViewBounds->Height + int(Unsorted::CellHeightInPixels * paddingBottompInCell)
71+
yMin + (Unsorted::CellHeightInPixels * pMapVisibleRect->Height) - pSurfaceViewBounds->Height + int(Unsorted::CellHeightInPixels * paddingBottomInCell)
7272
);
7373

7474
if (tacticalPos->Y > yMax)
@@ -105,7 +105,7 @@ DEFINE_HOOK(0x6D4934, Tactical_Render_OverlapForeignMap, 0x6)
105105
}
106106

107107
{
108-
const int maxHeight = pSurfaceViewBounds->Height - (Unsorted::CellHeightInPixels * pMapVisibleRect->Height) - int(Unsorted::CellHeightInPixels * paddingBottompInCell);
108+
const int maxHeight = pSurfaceViewBounds->Height - (Unsorted::CellHeightInPixels * pMapVisibleRect->Height) - int(Unsorted::CellHeightInPixels * paddingBottomInCell);
109109

110110
if (maxHeight > 0)
111111
{

0 commit comments

Comments
 (0)