• R/O
  • SSH
  • HTTPS

dtxmaniaxg-verk: Commit


Commit MetaInfo

Revision559 (tree)
Time2016-07-10 22:20:02
Authorkairera0467

Log Message

#xxxxx (4.00RC)3桁難易度入力の対応。
#xxxxx (4.00RC)一定条件でのクラッシュを回避したつもり。
#xxxxx (4.00RC)コードの一部に解放処理の追加。(ほとんど効果無し?)

Change Summary

Incremental Difference

--- branches/140707(ReBuild XGVersion)/DTXManiaプロジェクト/コード/スコア、曲/CDTX.cs (revision 558)
+++ branches/140707(ReBuild XGVersion)/DTXManiaプロジェクト/コード/スコア、曲/CDTX.cs (revision 559)
@@ -4014,7 +4014,13 @@
40144014 int dlevel;
40154015 if( int.TryParse( strパラメータ, out dlevel ) )
40164016 {
4017- this.LEVEL.Drums = Math.Min( Math.Max( dlevel, 0 ), 100 ); // 0~100 に丸める
4017+ this.LEVEL.Drums = Math.Min( Math.Max( dlevel, 0 ), 1000 ); // 0~100 に丸める
4018+ if( this.LEVEL.Drums >= 100 )
4019+ {
4020+ int dlevelTemp = this.LEVEL.Drums;
4021+ this.LEVEL.Drums = (int)( this.LEVEL.Drums / 10.0f );
4022+ this.LEVELDEC.Drums = dlevelTemp - this.LEVEL.Drums * 10;
4023+ }
40184024 }
40194025 }
40204026 //-----------------
@@ -4028,7 +4034,13 @@
40284034 int glevel;
40294035 if( int.TryParse( strパラメータ, out glevel ) )
40304036 {
4031- this.LEVEL.Guitar = Math.Min( Math.Max( glevel, 0 ), 100 ); // 0~100 に丸める
4037+ this.LEVEL.Guitar = Math.Min( Math.Max( glevel, 0 ), 1000 ); // 0~100 に丸める
4038+ if( this.LEVEL.Guitar >= 100 )
4039+ {
4040+ int glevelTemp = this.LEVEL.Guitar;
4041+ this.LEVEL.Guitar = (int)( this.LEVEL.Guitar / 10.0f );
4042+ this.LEVELDEC.Guitar = glevelTemp - this.LEVEL.Guitar * 10;
4043+ }
40324044 }
40334045 }
40344046 //-----------------
@@ -4042,7 +4054,13 @@
40424054 int blevel;
40434055 if( int.TryParse( strパラメータ, out blevel ) )
40444056 {
4045- this.LEVEL.Bass = Math.Min( Math.Max( blevel, 0 ), 100 ); // 0~100 に丸める
4057+ this.LEVEL.Bass = Math.Min( Math.Max( blevel, 0 ), 1000 ); // 0~100 に丸める
4058+ if( this.LEVEL.Bass >= 100 )
4059+ {
4060+ int blevelTemp = this.LEVEL.Bass;
4061+ this.LEVEL.Bass = (int)( this.LEVEL.Bass / 10.0f );
4062+ this.LEVELDEC.Bass = blevelTemp - this.LEVEL.Bass * 10;
4063+ }
40464064 }
40474065 }
40484066 //-----------------
--- branches/140707(ReBuild XGVersion)/DTXManiaプロジェクト/コード/ステージ/07.演奏/CStage演奏画面共通.cs (revision 558)
+++ branches/140707(ReBuild XGVersion)/DTXManiaプロジェクト/コード/ステージ/07.演奏/CStage演奏画面共通.cs (revision 559)
@@ -3711,7 +3711,7 @@
37113711 this.tx背景 = null;
37123712 }
37133713 #endregion
3714- image.Dispose();
3714+ CDTXMania.t安全にDisposeする( ref image );
37153715 }
37163716
37173717 protected virtual void t入力処理_ギター()
--- branches/140707(ReBuild XGVersion)/DTXManiaプロジェクト/コード/ステージ/07.演奏/CAct演奏AVI.cs (revision 558)
+++ branches/140707(ReBuild XGVersion)/DTXManiaプロジェクト/コード/ステージ/07.演奏/CAct演奏AVI.cs (revision 559)
@@ -472,7 +472,8 @@
472472 (bIsPreviewMovie) ? 269 : SampleFramework.GameWindowSize.Height
473473 );
474474 #endif
475- this.tx描画用.vc拡大縮小倍率 = new Vector3( Scale.X, Scale.Y, 1f );
475+ if( this.tx描画用 != null )
476+ this.tx描画用.vc拡大縮小倍率 = new Vector3( Scale.X, Scale.Y, 1f );
476477 this.txArフィルインエフェクト = new CTexture[ 31 ];
477478 for( int ar = 0; ar < 31; ar++ )
478479 {
@@ -479,9 +480,11 @@
479480 this.txArフィルインエフェクト[ ar ] = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\StageEffect\7_StageEffect_" + ar.ToString() + ".png" ) );
480481 if( this.txArフィルインエフェクト[ ar ] == null )
481482 continue; //テクスチャが欠けていた場合は、事故防止のためにループを1つスキップする。
482-
483- this.txArフィルインエフェクト[ ar ].b加算合成 = true;
484- this.txArフィルインエフェクト[ ar ].vc拡大縮小倍率 = new Vector3( 2.0f, 2.0f, 1.0f );
483+ if( this.txArフィルインエフェクト[ ar ] == null )
484+ {
485+ this.txArフィルインエフェクト[ ar ].b加算合成 = true;
486+ this.txArフィルインエフェクト[ ar ].vc拡大縮小倍率 = new Vector3( 2.0f, 2.0f, 1.0f );
487+ }
485488 }
486489 this.ctStageEffect進行 = new CCounter( 0, 30, 30, CDTXMania.Timer );
487490
@@ -513,6 +516,7 @@
513516 CDTXMania.tテクスチャの解放( ref this.txArフィルインエフェクト[ ar ] );
514517 }
515518 CDTXMania.tテクスチャの解放( ref this.txクリップパネル );
519+ this.ctStageEffect進行 = null;
516520 base.OnManagedリソースの解放();
517521 }
518522 }
Show on old repository browser