Skip to content

Commit 8663266

Browse files
committed
Fix float constant
1 parent 532e4be commit 8663266

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

LEGORacers/src/audio/soundnode.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
DECOMP_SIZE_ASSERT(SoundVector, 0x0c)
44
DECOMP_SIZE_ASSERT(SoundNode, 0x50)
55

6-
// GLOBAL: LEGORACERS 0x004af58c
7-
LegoFloat g_unk0x4af58c = 0.5f;
8-
96
// GLOBAL: LEGORACERS 0x004afa38
107
LegoFloat g_unk0x4afa38 = 343.0f;
118

@@ -30,6 +27,6 @@ SoundNode::SoundNode()
3027
m_soundSpeed = g_unk0x4afa38;
3128

3229
LegoFloat scaledDistance = g_unk0x4afa38;
33-
m_maxVelocity = scaledDistance * g_unk0x4af58c;
30+
m_maxVelocity = scaledDistance * 0.5f;
3431
m_unk0x44 = 1;
3532
}

reccmp/lego-racers-floats.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ address,type,size
55
0x4af388,float,4
66
0x4af4ac,float,4
77
0x4af4b0,float,4
8+
0x4af58c,float,4
89
0x4af6fc,float,4
910
0x4b0134,float,4
1011
0x4b0138,float,4

0 commit comments

Comments
 (0)