Skip to content

Commit 2e7771a

Browse files
committed
clang-format
1 parent 9968e6f commit 2e7771a

4 files changed

Lines changed: 14 additions & 13 deletions

File tree

LEGORacers/src/menu/widgets/menuwidget.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,8 @@ void MenuWidget::DrawString(
312312
&m_color,
313313
p_unk0x18
314314
);
315-
} else {
315+
}
316+
else {
316317
LegoS32 y = p_source->m_top;
317318
LegoS32 x = p_source->m_left;
318319
m_renderer->VTable0x6c(

LEGORacers/src/race/racesessionfield0x6dcresources.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ extern const LegoFloat g_raceSessionField0xf8CollisionStartOffset;
4141
extern const LegoFloat g_violetShoalTwo;
4242

4343
// GLOBAL: LEGORACERS 0x004b02fc
44-
const LegoFloat g_unk0x004b02fc = 0.0020000001f;
44+
const LegoFloat g_unk0x004b02fc = 0.002f;
4545

4646
// GLOBAL: LEGORACERS 0x004b0400
47-
const LegoFloat g_unk0x004b0400 = 0.0020000001f;
47+
const LegoFloat g_unk0x004b0400 = 0.002f;
4848

4949
// GLOBAL: LEGORACERS 0x004b1370
5050
const LegoFloat g_unk0x004b1370 = 5.0f;
@@ -104,7 +104,7 @@ const LegoFloat g_unk0x004b143c = 200.0f;
104104

105105
const LegoFloat g_unk0x004b1440 = 600.0f;
106106

107-
const LegoFloat g_unk0x004b1444 = 0.0120000001f;
107+
const LegoFloat g_unk0x004b1444 = 0.012f;
108108

109109
const LegoFloat g_unk0x004b146c = 5.17852306f;
110110

@@ -123,7 +123,7 @@ const LegoFloat g_unk0x004b1484 = 3.0f;
123123
const LegoFloat g_unk0x004b14a8 = 100.0f;
124124

125125
// GLOBAL: LEGORACERS 0x004b14ac
126-
const LegoFloat g_unk0x004b14ac = 0.80000001f;
126+
const LegoFloat g_unk0x004b14ac = 0.8f;
127127

128128
// GLOBAL: LEGORACERS 0x004b170c
129129
const LegoFloat g_unk0x004b170c = 30.0f;
@@ -153,7 +153,7 @@ const LegoFloat g_unk0x004b150c = 5.0f;
153153
const LegoFloat g_unk0x004b1510 = 144.0f;
154154

155155
// GLOBAL: LEGORACERS 0x004b1514
156-
const LegoFloat g_unk0x004b1514 = 0.60000002f;
156+
const LegoFloat g_unk0x004b1514 = 0.6f;
157157

158158
// GLOBAL: LEGORACERS 0x004b1544
159159
const LegoFloat g_unk0x004b1544 = 3.0f;
@@ -168,7 +168,7 @@ const LegoFloat g_unk0x004b154c = 300.0f;
168168
const LegoFloat g_unk0x004b1550 = FLT_MAX;
169169

170170
// GLOBAL: LEGORACERS 0x004b1558
171-
const LegoFloat g_unk0x004b1558 = 0.85000002f;
171+
const LegoFloat g_unk0x004b1558 = 0.85f;
172172

173173
// GLOBAL: LEGORACERS 0x004b155c
174174
const LegoFloat g_unk0x004b155c = 9.0f;
@@ -1204,7 +1204,7 @@ void RacePowerupManager::Field0x1898::VTable0x08(LegoU32 p_elapsedMs)
12041204
}
12051205
}
12061206

1207-
m_unk0x178 += static_cast<LegoFloat>(p_elapsedMs) * 0.0120000001f;
1207+
m_unk0x178 += static_cast<LegoFloat>(p_elapsedMs) * 0.012f;
12081208

12091209
LegoS32 tableIndex = (0xffffff00 - static_cast<LegoS32>(m_unk0x178 * g_negativeRadiansToTableIndex)) & 0x3ff;
12101210
GolVec3 up;
@@ -2829,7 +2829,7 @@ void RacePowerupManager::Field0x1890::VTable0x08(LegoU32 p_elapsedMs)
28292829
m_unk0x3c->FUN_00410b00(direction, up);
28302830

28312831
if (m_unk0x78 != NULL) {
2832-
if (m_unk0x78->m_unk0x3e8.m_unk0x604 <= 0.0020000001f) {
2832+
if (m_unk0x78->m_unk0x3e8.m_unk0x604 <= 0.002f) {
28332833
m_flags0x80 |= c_flags0x80Bit0;
28342834

28352835
if (!(m_unk0x78->m_unk0xd04 & c_racerFlags0xd04Bit3)) {
@@ -2851,7 +2851,7 @@ void RacePowerupManager::Field0x1890::VTable0x08(LegoU32 p_elapsedMs)
28512851

28522852
m_unk0x78->m_unk0x3e8.VTable0x20(&direction, static_cast<LegoS32>(p_elapsedMs) * 1.0f);
28532853

2854-
if (m_unk0x78->m_unk0x3e8.m_unk0x604 <= 0.0020000001f) {
2854+
if (m_unk0x78->m_unk0x3e8.m_unk0x604 <= 0.002f) {
28552855
direction.m_x = racerPosition.m_x - modelPosition.m_x;
28562856
direction.m_y = racerPosition.m_y - modelPosition.m_y;
28572857
direction.m_z = racerPosition.m_z - modelPosition.m_z;

LEGORacers/src/race/slatebridge0x68.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ void SlateBridge0x68::FUN_00427440()
149149
0xffffff00 -
150150
static_cast<LegoS32>(static_cast<LegoFloat>(m_unk0x54) * 0.002f * g_twoPi * g_negativeRadiansToTableIndex);
151151
index &= c_cosineTableMask;
152-
selectedAlpha =
153-
c_selectedPulseAlphaCenter - static_cast<LegoS32>(g_cosineTable[index] * (int)c_selectedPulseAlphaAmplitude);
152+
selectedAlpha = c_selectedPulseAlphaCenter -
153+
static_cast<LegoS32>(g_cosineTable[index] * (int) c_selectedPulseAlphaAmplitude);
154154
}
155155

156156
m_font->SetColor(c_promptColor);

common/src/golfontbase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ void GolFontBase::DrawString(
914914
}
915915

916916
// FUNCTION: GOLDP 0x1001eb70
917-
void GolFontBase::DrawString(
917+
void GolFontBase::DrawString(
918918
GolString* p_string,
919919
GolRenderDevice* p_renderer,
920920
LegoS32 p_x,

0 commit comments

Comments
 (0)