X operations(XOPS)に非常に近いFPSゲームを制作・リメイクし、成果物をオープンソースとして公開することを目的としたプロジェクトです。
| Revision | 183 (tree) |
|---|---|
| Time | 2017-08-13 12:32:31 |
| Author | |
特定条件で背景空が白くなるバグの修正、ゲーム終了時に一部テクスチャリソースが解放されないバグの修正。
| @@ -46,8 +46,8 @@ | ||
| 46 | 46 | #ifndef D3DGRAPHICS_H |
| 47 | 47 | #define D3DGRAPHICS_H |
| 48 | 48 | |
| 49 | -#define MAX_MODEL 96 //!< 最大モデル数 | |
| 50 | -#define MAX_TEXTURE 64 //!< 最大テクスチャ数 | |
| 49 | +#define MAX_MODEL 72 //!< 最大モデル数 | |
| 50 | +#define MAX_TEXTURE 72 //!< 最大テクスチャ数 | |
| 51 | 51 | |
| 52 | 52 | #define CLIPPINGPLANE_NEAR 1.0f //!< 近クリップ面(≒描画する最小距離) |
| 53 | 53 | #define CLIPPINGPLANE_FAR 800.0f //!< 遠クリップ面(≒描画する最大距離) |
| @@ -734,13 +734,15 @@ | ||
| 734 | 734 | void ResourceManager::CleanupSkyModelTexture() |
| 735 | 735 | { |
| 736 | 736 | if( d3dg == NULL ){ return; } |
| 737 | - if( skymodel == -1 ){ return; } | |
| 738 | - if( skytexture == -1 ){ return; } | |
| 739 | 737 | |
| 740 | - d3dg->CleanupModel(skymodel); | |
| 741 | - d3dg->CleanupTexture(skytexture); | |
| 742 | - skymodel = -1; | |
| 743 | - skytexture = -1; | |
| 738 | + if( skymodel != -1 ){ | |
| 739 | + d3dg->CleanupModel(skymodel); | |
| 740 | + skymodel = -1; | |
| 741 | + } | |
| 742 | + if( skytexture != -1 ){ | |
| 743 | + d3dg->CleanupTexture(skytexture); | |
| 744 | + skytexture = -1; | |
| 745 | + } | |
| 744 | 746 | } |
| 745 | 747 | |
| 746 | 748 | //! @brief 弾・手榴弾のサウンドを読み込む |
| @@ -855,19 +857,19 @@ | ||
| 855 | 857 | { |
| 856 | 858 | if( d3dg == NULL ){ return; } |
| 857 | 859 | |
| 858 | - if( effecttexture_blood == -1 ){ | |
| 860 | + if( effecttexture_blood != -1 ){ | |
| 859 | 861 | d3dg->CleanupTexture(effecttexture_blood); |
| 860 | 862 | effecttexture_blood = -1; |
| 861 | 863 | } |
| 862 | - if( effecttexture_mflash == -1 ){ | |
| 864 | + if( effecttexture_mflash != -1 ){ | |
| 863 | 865 | d3dg->CleanupTexture(effecttexture_mflash); |
| 864 | 866 | effecttexture_mflash = -1; |
| 865 | 867 | } |
| 866 | - if( effecttexture_smoke == -1 ){ | |
| 868 | + if( effecttexture_smoke != -1 ){ | |
| 867 | 869 | d3dg->CleanupTexture(effecttexture_smoke); |
| 868 | 870 | effecttexture_smoke = -1; |
| 869 | 871 | } |
| 870 | - if( effecttexture_yakkyou == -1 ){ | |
| 872 | + if( effecttexture_yakkyou != -1 ){ | |
| 871 | 873 | d3dg->CleanupTexture(effecttexture_yakkyou); |
| 872 | 874 | effecttexture_yakkyou = -1; |
| 873 | 875 | } |