OSDN Git Service

#24396 HH3連打で難易度が2回変更されないよう、コマンド入力成功時にコマンド入力履歴を消去するよう修正。
authoryyagi <yyagi@16f42ceb-6dc6-49c8-ba94-f2d53467949d>
Sun, 13 Feb 2011 04:54:07 +0000 (04:54 +0000)
committeryyagi <yyagi@16f42ceb-6dc6-49c8-ba94-f2d53467949d>
Sun, 13 Feb 2011 04:54:07 +0000 (04:54 +0000)
git-svn-id: http://svn.osdn.jp/svnroot/dtxmania/trunk@112 16f42ceb-6dc6-49c8-ba94-f2d53467949d

DTXManiaプロジェクト/コード/ステージ/05.選曲/CStage選曲.cs

index 1580ac8..2d19f63 100644 (file)
@@ -638,26 +638,27 @@ Debug.WriteLine( "CMDHIS: 楽器=" + _stct.eInst + ", CMD=" + _stct.ePad + ", ti
                                {\r
                                        if ( _ePad[ i ] != stct[ j ].ePad )\r
                                        {\r
-Debug.WriteLine( "CMD解析: false targetCount=" + targetCount + ", i=" + i + ", j=" + j + ": ePad[]=" + _ePad[i] + ", stci[j] = " + stct[j].ePad );\r
+//Debug.WriteLine( "CMD解析: false targetCount=" + targetCount + ", i=" + i + ", j=" + j + ": ePad[]=" + _ePad[i] + ", stci[j] = " + stct[j].ePad );\r
                                                return false;\r
                                        }\r
                                        if ( stct[ j ].eInst != _eInst )\r
                                        {\r
-Debug.WriteLine( "CMD解析: false " + i );\r
+//Debug.WriteLine( "CMD解析: false " + i );\r
                                                return false;\r
                                        }\r
                                        if ( curTime - stct[ j ].time > 500 )\r
                                        {\r
-Debug.WriteLine( "CMD解析: false " + i + "; over 500ms" );\r
+//Debug.WriteLine( "CMD解析: false " + i + "; over 500ms" );\r
                                                return false;\r
                                        }\r
                                        curTime = stct[ j ].time;\r
                                }\r
 \r
-Debug.Write( "CMD解析: 成功!(" + _ePad.Length + ") " );\r
-for ( int i = 0; i < _ePad.Length; i++ ) Debug.Write( _ePad[ i ] + ", " );\r
-Debug.WriteLine( "" );\r
-                               stct.RemoveRange( 0, targetCount );\r
+//Debug.Write( "CMD解析: 成功!(" + _ePad.Length + ") " );\r
+//for ( int i = 0; i < _ePad.Length; i++ ) Debug.Write( _ePad[ i ] + ", " );\r
+//Debug.WriteLine( "" );\r
+                               //stct.RemoveRange( 0, targetCount );                   // #24396 2011.2.13 yyagi \r
+                               stct.Clear();                                                                   // #24396 2011.2.13 yyagi Clear all command input history in case you succeeded inputting some command\r
 \r
                                return true;\r
                        }\r