From 6061d5c08e360a6156774b05f5b9e649881aac46 Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Sun, 27 Feb 2011 18:36:41 -0600 Subject: [PATCH] commenting --- src/ArrowEffects.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/ArrowEffects.cpp b/src/ArrowEffects.cpp index f19cf6f40f..81fed4db5d 100644 --- a/src/ArrowEffects.cpp +++ b/src/ArrowEffects.cpp @@ -15,7 +15,10 @@ #include static ThemeMetric ARROW_SPACING( "ArrowEffects", "ArrowSpacing" ); +static ThemeMetric QUANTIZE_ARROW_Y( "ArrowEffects", "QuantizeArrowYPosition"); static ThemeMetric HIDDEN_SUDDEN_PAST_RECEPTOR( "ArrowEffects", "DrawHiddenNotesAfterReceptor"); + +// Allow themes to modify effects. (Is this a good idea? -aj) static ThemeMetric BLINK_MOD_FREQUENCY( "ArrowEffects", "BlinkModFrequency" ); static ThemeMetric BOOST_MOD_MIN_CLAMP( "ArrowEffects", "BoostModMinClamp" ); static ThemeMetric BOOST_MOD_MAX_CLAMP( "ArrowEffects", "BoostModMaxClamp" ); @@ -50,7 +53,6 @@ static ThemeMetric BEAT_OFFSET_HEIGHT( "ArrowEffects", "BeatOffsetHeight" static ThemeMetric BEAT_PI_HEIGHT( "ArrowEffects", "BeatPIHeight" ); static ThemeMetric MINI_PERCENT_BASE( "ArrowEffects", "MiniPercentBase" ); static ThemeMetric MINI_PERCENT_GATE( "ArrowEffects", "MiniPercentGate" ); -static ThemeMetric QUANTIZE_ARROW_Y( "ArrowEffects", "QuantizeArrowYPosition"); static float GetNoteFieldHeight( const PlayerState* pPlayerState ) { @@ -231,6 +233,8 @@ float ArrowEffects::GetYOffset( const PlayerState* pPlayerState, int iCol, float fYOffset += fYOffsetTimeSpacing * pPlayerState->m_PlayerOptions.GetCurrent().m_fTimeSpacing; } + // TODO: If we allow noteskins to have metricable row spacing + // (per issue 24), edit this to reflect that. -aj fYOffset *= ARROW_SPACING; // don't mess with the arrows after they've crossed 0 @@ -287,8 +291,8 @@ float ArrowEffects::GetYOffset( const PlayerState* pPlayerState, int iCol, float seed = ((seed * 1664525u) + 1013904223u) & 0xFFFFFFFF; float fRandom = seed / 4294967296.0f; - /* Random speed always increases speed: a random speed of 10 indicates [1,11]. - * This keeps it consistent with other mods: 0 means no effect. */ + /* Random speed always increases speed: a random speed of 10 indicates + * [1,11]. This keeps it consistent with other mods: 0 means no effect. */ fScrollSpeed *= SCALE( fRandom, 0.0f, 1.0f,