Let Negative Stops "work" in QuirksMode.
This commit is contained in:
+11
-2
@@ -4,6 +4,7 @@
|
|||||||
#define TIMING_DATA_H
|
#define TIMING_DATA_H
|
||||||
|
|
||||||
#include "NoteTypes.h"
|
#include "NoteTypes.h"
|
||||||
|
#include "PrefsManager.h"
|
||||||
struct lua_State;
|
struct lua_State;
|
||||||
|
|
||||||
#define COMPARE(x) if(x!=other.x) return false;
|
#define COMPARE(x) if(x!=other.x) return false;
|
||||||
@@ -31,8 +32,16 @@ struct BPMSegment
|
|||||||
struct StopSegment
|
struct StopSegment
|
||||||
{
|
{
|
||||||
StopSegment() : m_iStartRow(-1), m_fStopSeconds(-1.0f), m_bDelay(false) { }
|
StopSegment() : m_iStartRow(-1), m_fStopSeconds(-1.0f), m_bDelay(false) { }
|
||||||
StopSegment( int s, float f ) { m_iStartRow = max( 0, s ); m_fStopSeconds = max( 0.0f, f ); m_bDelay = false; } // no delay by default
|
StopSegment( int s, float f ) {
|
||||||
StopSegment( int s, float f, bool d ) { m_iStartRow = max( 0, s ); m_fStopSeconds = max( 0.0f, f ); m_bDelay = d; }
|
m_iStartRow = max( 0, s );
|
||||||
|
m_fStopSeconds = PREFSMAN->m_bQuirksMode ? f : max( 0.0f, f );
|
||||||
|
m_bDelay = false; // no delay by default
|
||||||
|
}
|
||||||
|
StopSegment( int s, float f, bool d ) {
|
||||||
|
m_iStartRow = max( 0, s );
|
||||||
|
m_fStopSeconds = PREFSMAN->m_bQuirksMode ? f : max( 0.0f, f );
|
||||||
|
m_bDelay = d;
|
||||||
|
}
|
||||||
int m_iStartRow;
|
int m_iStartRow;
|
||||||
float m_fStopSeconds;
|
float m_fStopSeconds;
|
||||||
bool m_bDelay; // if true, treat this stop as a Pump delay instead
|
bool m_bDelay; // if true, treat this stop as a Pump delay instead
|
||||||
|
|||||||
Reference in New Issue
Block a user