• R/O
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

X operations(XOPS)に非常に近いFPSゲームを制作・リメイクし、成果物をオープンソースとして公開することを目的としたプロジェクトです。


Commit MetaInfo

Revision184 (tree)
Time2017-09-21 23:11:49
Authorxops-mikan

Log Message

ランダム武器にてモデル倍率が正しく設定されないバグの修正、定数BLOCKDATA_GPUMEMORY無効時にコンパイルエラーとなる問題の修正。

Change Summary

Incremental Difference

--- trunk/d3dgraphics-directx.cpp (revision 183)
+++ trunk/d3dgraphics-directx.cpp (revision 184)
@@ -1297,7 +1297,10 @@
12971297 //! @brief マップデータを解放
12981298 void D3DGraphics::CleanupMapdata()
12991299 {
1300- if( (g_pVB == NULL)&&(bs == 0)&&(blockdata == NULL) ){ return; }
1300+#ifdef BLOCKDATA_GPUMEMORY
1301+ if( g_pVB == NULL ){ return; }
1302+#endif
1303+ if( (bs == 0)&&(blockdata == NULL) ){ return; }
13011304
13021305 //テクスチャを開放
13031306 for(int i=0; i<TOTAL_BLOCKTEXTURE; i++){
--- trunk/objectmanager.cpp (revision 183)
+++ trunk/objectmanager.cpp (revision 184)
@@ -376,7 +376,7 @@
376376
377377 //設定値を取得
378378 WeaponParameter WeaponParam;
379- if( GameParamInfo->GetWeapon(data.p2, &WeaponParam) == 1 ){ return -1; }
379+ if( GameParamInfo->GetWeapon(WeaponID, &WeaponParam) == 1 ){ return -1; }
380380
381381 for(int i=0; i<MAX_WEAPON; i++){
382382 if( WeaponIndex[i].GetEnableFlag() == false ){