From 2faf8f91354edb5f2df5aa7a25e667d6e829173d Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 13 Sep 2006 00:59:44 +0000 Subject: [PATCH] simplify I'd prefer to get rid of the StyleInput versions of INPUTMAPPER calls, and just pass in GameInputs and leave conversion to the users (which aren't many). The MultiPlayer hack makes this hard, though, where we pass in the MultiPlayer to check; that affects the underlying DeviceInput that's constructed. --- stepmania/src/Player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/Player.cpp b/stepmania/src/Player.cpp index 9e3e266ee3..1322bc3391 100644 --- a/stepmania/src/Player.cpp +++ b/stepmania/src/Player.cpp @@ -1007,7 +1007,7 @@ void Player::Step( int col, int row, const RageTimer &tm, bool bHeld, bool bRele for( int t=0; tGetCurrentStyle()->StyleInputToGameInput( t, pn ); - const float fSecsHeld = INPUTMAPPER->GetSecsHeld( GameI ); + const float fSecsHeld = INPUTMAPPER->GetSecsHeld( t, pn ); if( fSecsHeld > 0 && fSecsHeld < JUMP_WINDOW_SECONDS ) iNumTracksHeld++; }