Change RadarValues internal implementation to not use a union and use the subscript operator instead of the float* operator for subscripting.
This commit is contained in:
@@ -865,7 +865,9 @@ static HighScore MakeRandomHighScore( float fPercentDP )
|
||||
hs.SetHoldNoteScore( hns, RandomInt(100) );
|
||||
RadarValues rv;
|
||||
FOREACH_ENUM( RadarCategory, rc )
|
||||
rv.m_Values.f[rc] = randomf( 0, 1 );
|
||||
{
|
||||
rv[rc] = randomf( 0, 1 );
|
||||
}
|
||||
hs.SetRadarValues( rv );
|
||||
|
||||
return hs;
|
||||
|
||||
Reference in New Issue
Block a user