Little() now removes HoldNotes that don't start on a beat

This commit is contained in:
Chris Danford
2003-02-25 08:07:56 +00:00
parent 1fca3d67c5
commit d77d1cc43c
6 changed files with 21 additions and 27 deletions
+1 -1
View File
@@ -719,7 +719,7 @@ ExtraColor=0.6,0.0,0.0,1 // dark red
[GrayArrow]
StepZoom=0.75
StepSeconds=0.2
StepSeconds=0.13
[CodeDetector]
Easier1=Up,Up
+3 -1
View File
@@ -160,7 +160,9 @@ void Combo::SetScore( TapNoteScore score, int iNumNotesInThisRow, Inventory* pIn
case TNS_MISS:
{
// end combo
bool bItemAcquired = pInventory->OnComboBroken( m_PlayerNumber, m_iCurCombo );
bool bItemAcquired = false;
if( pInventory )
bItemAcquired = pInventory->OnComboBroken( m_PlayerNumber, m_iCurCombo );
if( !bItemAcquired && m_iCurCombo>50 ) // don't play "combo stopped" if we got an item
SCREENMAN->SendMessageToTopScreen( SM_ComboStopped, 0 );
+6 -8
View File
@@ -19,16 +19,14 @@
#include "RageLog.h"
#define STEP_SECONDS THEME->GetMetricF("GrayArrow","StepSeconds")
#define STEP_ZOOM THEME->GetMetricF("GrayArrow","StepZoom")
float g_fStepSeconds, g_fStepZoom;
CachedThemeMetric GR_STEP_SECONDS ("GrayArrow","StepSeconds");
CachedThemeMetric GR_STEP_ZOOM ("GrayArrow","StepZoom");
GrayArrow::GrayArrow()
{
g_fStepSeconds = STEP_SECONDS;
g_fStepZoom = STEP_ZOOM;
GR_STEP_SECONDS.Refresh();
GR_STEP_ZOOM.Refresh();
StopAnimating();
}
@@ -72,8 +70,8 @@ void GrayArrow::Update( float fDeltaTime )
void GrayArrow::Step()
{
SetZoom( g_fStepZoom );
SetZoom( GR_STEP_ZOOM );
StopTweening();
BeginTweening( g_fStepSeconds );
BeginTweening( GR_STEP_SECONDS );
SetTweenZoom( 1 );
}
+6 -12
View File
@@ -994,19 +994,13 @@ void NoteDataUtil::Little(NoteData &in)
{
// filter out all non-quarter notes
int max_row = in.GetLastRow();
for( int i=0; i<=max_row; i++ )
{
if( i%ROWS_PER_BEAT != 0 )
{
// filter out all non-quarter notes
for( int c=0; c<in.GetNumTracks(); c++ )
{
in.SetTapNote(c, i, TAP_EMPTY);
}
}
}
for( int i=0; i<=max_row; i+=ROWS_PER_BEAT )
for( int c=0; c<in.GetNumTracks(); c++ )
in.SetTapNote(c, i, TAP_EMPTY);
// leave HoldNotes unchanged (what should be do with them?)
for( int i=in.GetNumHoldNotes()-1; i>=0; i-- )
if( fmodf(in.GetHoldNote(i).fStartBeat,1) != 0 ) // doesn't start on a beat
in.RemoveHoldNote( i );
}
void NoteDataUtil::Wide( NoteData &in )
+4 -4
View File
@@ -117,15 +117,15 @@ STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION
CAPTION "StepMania Error"
FONT 8, "MS Sans Serif"
BEGIN
DEFPUSHBUTTON "Close",IDOK,265,215,60,15
EDITTEXT IDC_EDIT_ERROR,5,80,320,130,ES_MULTILINE | ES_READONLY |
WS_VSCROLL | NOT WS_TABSTOP
DEFPUSHBUTTON "Close",IDOK,265,215,60,15
PUSHBUTTON "View Log",IDC_BUTTON_VIEW_LOG,8,215,74,15
PUSHBUTTON "Report the Error",IDC_BUTTON_REPORT,90,215,76,15
PUSHBUTTON "Restart StepMania",IDC_BUTTON_RESTART,175,215,80,15
CONTROL 129,IDC_STATIC,"Static",SS_BITMAP,0,0,332,38
LTEXT "Sorry! An error has occurred while running StepMania.\r\n\r\nSpecific details about the error may be listeted in the box below:",
IDC_STATIC,7,46,298,28
PUSHBUTTON "Restart StepMania",IDC_BUTTON_RESTART,175,215,80,15
PUSHBUTTON "Report the Error",IDC_BUTTON_REPORT,90,215,76,15
PUSHBUTTON "View Log",IDC_BUTTON_VIEW_LOG,8,215,74,15
END
IDD_LOADING_DIALOG DIALOG DISCARDABLE 0, 0, 312, 82
+1 -1
View File
@@ -19,7 +19,7 @@
!define PRODUCT_NAME_VER "${PRODUCT_NAME} ${VERSION}"
Name "${PRODUCT_NAME}"
OutFile "StepMania-CVS-20030223.exe"
OutFile "StepMania-CVS-20030224.exe"
;OutFile "StepMania301.exe"
; Some default compiler settings (uncomment and change at will):