1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-23 04:30:00 +00:00

fix mailbox particle

This commit is contained in:
Fire-Head 2021-02-15 21:25:18 +03:00
parent adf688635a
commit 63e5afda0b

View file

@ -49,6 +49,8 @@
#define MAX_RAINDRIP_FILES (2) #define MAX_RAINDRIP_FILES (2)
#define MAX_LEAF_FILES (2)
const char SmokeFiles[][6+1] = const char SmokeFiles[][6+1] =
{ {
@ -165,7 +167,7 @@ RwTexture *gpFlame1Tex;
RwTexture *gpFlame5Tex; RwTexture *gpFlame5Tex;
RwTexture *gpRainDropSmallTex; RwTexture *gpRainDropSmallTex;
RwTexture *gpBloodTex; RwTexture *gpBloodTex;
RwTexture *gpLeafTex; RwTexture *gpLeafTex[MAX_LEAF_FILES];
RwTexture *gpCloudTex1; RwTexture *gpCloudTex1;
RwTexture *gpCloudTex4; RwTexture *gpCloudTex4;
RwTexture *gpBloodSmallTex; RwTexture *gpBloodSmallTex;
@ -193,7 +195,7 @@ RwRaster *gpFlame1Raster;
RwRaster *gpFlame5Raster; RwRaster *gpFlame5Raster;
RwRaster *gpRainDropSmallRaster; RwRaster *gpRainDropSmallRaster;
RwRaster *gpBloodRaster; RwRaster *gpBloodRaster;
RwRaster *gpLeafRaster; RwRaster *gpLeafRaster[MAX_LEAF_FILES];
RwRaster *gpCloudRaster1; RwRaster *gpCloudRaster1;
RwRaster *gpCloudRaster4; RwRaster *gpCloudRaster4;
RwRaster *gpBloodSmallRaster; RwRaster *gpBloodSmallRaster;
@ -206,9 +208,6 @@ RwRaster *gpPointlightRaster;
RwTexture *gpRainDropTex; RwTexture *gpRainDropTex;
RwRaster *gpRainDropRaster; RwRaster *gpRainDropRaster;
RwTexture *gpLetterTex;
RwRaster *gpLetterRaster;
RwTexture *gpSparkTex; RwTexture *gpSparkTex;
RwTexture *gpNewspaperTex; RwTexture *gpNewspaperTex;
RwTexture *gpGunSmokeTex; RwTexture *gpGunSmokeTex;
@ -425,11 +424,11 @@ void CParticle::Initialise()
gpBloodTex = RwTextureRead("blood", nil); gpBloodTex = RwTextureRead("blood", nil);
gpBloodRaster = RwTextureGetRaster(gpBloodTex); gpBloodRaster = RwTextureGetRaster(gpBloodTex);
gpLeafTex = RwTextureRead("gameleaf01_64", nil); gpLeafTex[0] = RwTextureRead("gameleaf01_64", nil);
gpLeafRaster = RwTextureGetRaster(gpLeafTex); gpLeafRaster[0] = RwTextureGetRaster(gpLeafTex[0]);
gpLetterTex = RwTextureRead("letter", nil); gpLeafTex[1] = RwTextureRead("letter", nil);
gpLetterRaster = RwTextureGetRaster(gpLetterTex); gpLeafRaster[1] = RwTextureGetRaster(gpLeafTex[1]);
gpCloudTex1 = RwTextureRead("cloud3", nil); gpCloudTex1 = RwTextureRead("cloud3", nil);
gpCloudRaster1 = RwTextureGetRaster(gpCloudTex1); gpCloudRaster1 = RwTextureGetRaster(gpCloudTex1);
@ -543,7 +542,7 @@ void CParticle::Initialise()
case PARTICLE_DEBRIS: case PARTICLE_DEBRIS:
case PARTICLE_TREE_LEAVES: case PARTICLE_TREE_LEAVES:
entry->m_ppRaster = &gpLeafRaster; entry->m_ppRaster = gpLeafRaster;
break; break;
case PARTICLE_DEBRIS2: case PARTICLE_DEBRIS2:
@ -773,11 +772,11 @@ void CParticle::Shutdown()
RwTextureDestroy(gpBloodTex); RwTextureDestroy(gpBloodTex);
gpBloodTex = nil; gpBloodTex = nil;
RwTextureDestroy(gpLeafTex); RwTextureDestroy(gpLeafTex[0]);
gpLeafTex = nil; gpLeafTex[0] = nil;
RwTextureDestroy(gpLetterTex); RwTextureDestroy(gpLeafTex[1]);
gpLetterTex = nil; gpLeafTex[1] = nil;
RwTextureDestroy(gpCloudTex1); RwTextureDestroy(gpCloudTex1);
gpCloudTex1 = nil; gpCloudTex1 = nil;