Skip to content

Commit 0b67c78

Browse files
committed
Fixed build
1 parent 900a2b3 commit 0b67c78

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

Source/Menus/MetagameGUI.cpp

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
#include "MetagameGUI.h"
23

34
#include "WindowMan.h"
@@ -69,8 +70,8 @@ void MetagameGUI::SiteTarget::Draw(BITMAP* drawBitmap) const {
6970

7071
// Draw the appropriate growing geometric figure around the location, growing
7172
if (m_Style == SiteTarget::CROSSHAIRSSHRINK) {
72-
float radius = Lerp(0.0f, 1.0f, 200f, 10f, m_AnimProgress);
73-
float lineLen = Lerp(0.0f, 1.0f, 60f, 10f, m_AnimProgress);
73+
float radius = Lerp(0.0f, 1.0f, 200.0f, 10.0f, m_AnimProgress);
74+
float lineLen = Lerp(0.0f, 1.0f, 60.0f, 10.0f, m_AnimProgress);
7475
float rotation = Lerp(0.0f, 1.0f, Matrix(-c_EighthPI), Matrix(0.0f), m_AnimProgress).GetRadAngle();
7576
Vector inner;
7677
Vector outer;
@@ -84,8 +85,8 @@ void MetagameGUI::SiteTarget::Draw(BITMAP* drawBitmap) const {
8485
DrawGlowLine(drawBitmap, m_CenterPos + inner, m_CenterPos + outer, m_Color);
8586
}
8687
} else if (m_Style == SiteTarget::CROSSHAIRSGROW) {
87-
float radius = Lerp(0.0f, 1.0f, 10f, 200f, m_AnimProgress);
88-
float lineLen = Lerp(0.0f, 1.0f, 10f, 60f, m_AnimProgress);
88+
float radius = Lerp(0.0f, 1.0f, 10.0f, 200.0f, m_AnimProgress);
89+
float lineLen = Lerp(0.0f, 1.0f, 10.0f, 60.0f, m_AnimProgress);
8990
float rotation = Lerp(0.0f, 1.0f, Matrix(-c_EighthPI), Matrix(0.0f), m_AnimProgress).GetRadAngle();
9091
Vector inner;
9192
Vector outer;
@@ -99,26 +100,26 @@ void MetagameGUI::SiteTarget::Draw(BITMAP* drawBitmap) const {
99100
DrawGlowLine(drawBitmap, m_CenterPos + inner, m_CenterPos + outer, m_Color);
100101
}
101102
} else if (m_Style == SiteTarget::CIRCLESHRINK) {
102-
float radius = Lerp(0.0, 1.0, 24, 6, m_AnimProgress);
103-
int blendAmount = Lerp(0.0, 1.0, 0, 255, m_AnimProgress); // + 15 * NormalRand();
103+
float radius = Lerp(0.0f, 1.0f, 24.0f, 6.0f, m_AnimProgress);
104+
int blendAmount = Lerp(0.0f, 1.0f, 0.0f, 255.0f, m_AnimProgress); // + 15 * NormalRand();
104105
set_screen_blender(blendAmount, blendAmount, blendAmount, blendAmount);
105106
circle(drawBitmap, m_CenterPos.m_X, m_CenterPos.m_Y, radius, m_Color);
106107
} else if (m_Style == SiteTarget::CIRCLEGROW) {
107-
float radius = Lerp(0.0, 1.0, 6, 24, m_AnimProgress);
108-
int blendAmount = Lerp(0.0, 1.0, 255, 0, m_AnimProgress); // + 15 * NormalRand();
108+
float radius = Lerp(0.0f, 1.0f, 6.0f, 24.0f, m_AnimProgress);
109+
int blendAmount = Lerp(0.0f, 1.0f, 255.0f, 0.0f, m_AnimProgress); // + 15 * NormalRand();
109110
set_screen_blender(blendAmount, blendAmount, blendAmount, blendAmount);
110111
circle(drawBitmap, m_CenterPos.m_X, m_CenterPos.m_Y, radius, m_Color);
111112
} else if (m_Style == SiteTarget::SQUARESHRINK) {
112-
float radius = Lerp(0.0, 1.0, 24, 6, m_AnimProgress);
113-
int blendAmount = Lerp(0.0, 1.0, 0, 255, m_AnimProgress); // + 15 * NormalRand();
113+
float radius = Lerp(0.0f, 1.0f, 24.0f, 6.0f, m_AnimProgress);
114+
int blendAmount = Lerp(0.0f, 1.0f, 0.0f, 255.0f, m_AnimProgress); // + 15 * NormalRand();
114115
set_screen_blender(blendAmount, blendAmount, blendAmount, blendAmount);
115116
rect(drawBitmap, m_CenterPos.m_X - radius, m_CenterPos.m_Y - radius, m_CenterPos.m_X + radius, m_CenterPos.m_Y + radius, m_Color);
116117
}
117118
// Default
118119
else // if (m_Style == SiteTarget::SQUAREGROW)
119120
{
120-
float radius = Lerp(0.0, 1.0, 6, 24, m_AnimProgress);
121-
int blendAmount = Lerp(0.0, 1.0, 255, 0, m_AnimProgress); // + 15 * NormalRand();
121+
float radius = Lerp(0.0f, 1.0f, 6.0f, 24.0f, m_AnimProgress);
122+
int blendAmount = Lerp(0.0f, 1.0f, 255.0f, 0.0f, m_AnimProgress); // + 15 * NormalRand();
122123
set_screen_blender(blendAmount, blendAmount, blendAmount, blendAmount);
123124
rect(drawBitmap, m_CenterPos.m_X - radius, m_CenterPos.m_Y - radius, m_CenterPos.m_X + radius, m_CenterPos.m_Y + radius, m_Color);
124125
}

Source/System/RTETools.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,4 +253,4 @@ namespace RTE {
253253

254254
return inspectedPath.generic_string();
255255
}
256-
} // namespace RTE
256+
} // namespace RTE

0 commit comments

Comments
 (0)