Skip to content

Commit 3028767

Browse files
committed
Fixed missed variable and method comment header.
1 parent c77c8a0 commit 3028767

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

include/RhythmGameUtilities/Utilities.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const float SECONDS_PER_MINUTE = 60.0f;
2929
*
3030
* @param seconds The seconds to generate ticks with.
3131
* @param resolution The resolution of the song.
32-
* @param tempoChanges All BPM changes within the song.
32+
* @param tempoChanges All tempo changes within the song.
3333
* @param timeSignatureChanges All time signature changes within the song.
3434
* @public
3535
*/
@@ -49,16 +49,16 @@ int ConvertSecondsToTicks(float seconds, int resolution,
4949

5050
while (remainingSeconds > 0)
5151
{
52-
int nextBPMChange = tempoChangesIterator != tempoChanges.end()
53-
? tempoChangesIterator->Position
54-
: INT_MAX;
52+
int nextTempoChange = tempoChangesIterator != tempoChanges.end()
53+
? tempoChangesIterator->Position
54+
: INT_MAX;
5555

5656
int nextTimeSignatureChange =
5757
timeSignatureIterator != timeSignatureChanges.end()
5858
? timeSignatureIterator->Position
5959
: INT_MAX;
6060

61-
int nextChangeTick = std::min(nextBPMChange, nextTimeSignatureChange);
61+
int nextChangeTick = std::min(nextTempoChange, nextTimeSignatureChange);
6262

6363
float ticksPerSecond = resolution * previousBPM / SECONDS_PER_MINUTE;
6464
float timeForSegment = (nextChangeTick - previousTick) / ticksPerSecond;
@@ -74,7 +74,7 @@ int ConvertSecondsToTicks(float seconds, int resolution,
7474
remainingSeconds -= timeForSegment;
7575
previousTick = nextChangeTick;
7676

77-
if (nextChangeTick == nextBPMChange)
77+
if (nextChangeTick == nextTempoChange)
7878
{
7979
previousBPM = tempoChangesIterator->BPM / 1000.0;
8080
++tempoChangesIterator;

0 commit comments

Comments
 (0)