Fix crash when equipping Mauler in multiplayer

This commit is contained in:
Ryan Dwyer
2022-11-16 17:20:36 +10:00
parent 44a3dc48e5
commit 7a9b061894
2 changed files with 11 additions and 13 deletions
-13
View File
@@ -1064,19 +1064,6 @@ Gfx *lasersightRenderDot(Gfx *gdl)
u32 spb = 24;
u32 spi = 6;
gDPSetCycleType(gdl++, G_CYC_1CYCLE);
gDPSetTextureFilter(gdl++, G_TF_BILERP);
gDPSetTexturePersp(gdl++, G_TP_PERSP);
gDPSetColorDither(gdl++, G_CD_DISABLE);
gDPSetRenderMode(gdl++, G_RM_AA_ZB_XLU_SURF, G_RM_AA_ZB_XLU_SURF2);
gDPSetAlphaCompare(gdl++, G_AC_NONE);
gDPSetTextureLOD(gdl++, G_TL_TILE);
gDPSetTextureConvert(gdl++, G_TC_FILT);
gDPSetTextureLUT(gdl++, G_TT_NONE);
gDPSetCombineMode(gdl++, G_CC_BLENDIA, G_CC_BLENDIA);
if (f20);
mtx4LoadIdentity(&sp164);
mtx00015be0(camGetWorldToScreenMtxf(), &sp164);
mtx4LoadIdentity(&sp124);
+11
View File
@@ -4105,6 +4105,17 @@ Gfx *playerRenderHud(Gfx *gdl)
gdl = boltbeamsRender(gdl);
bgunRender(&gdl);
gDPSetCycleType(gdl++, G_CYC_1CYCLE);
gDPSetTextureFilter(gdl++, G_TF_BILERP);
gDPSetTexturePersp(gdl++, G_TP_PERSP);
gDPSetColorDither(gdl++, G_CD_DISABLE);
gDPSetRenderMode(gdl++, G_RM_AA_ZB_XLU_SURF, G_RM_AA_ZB_XLU_SURF2);
gDPSetAlphaCompare(gdl++, G_AC_NONE);
gDPSetTextureLOD(gdl++, G_TL_TILE);
gDPSetTextureConvert(gdl++, G_TC_FILT);
gDPSetTextureLUT(gdl++, G_TT_NONE);
gDPSetCombineMode(gdl++, G_CC_BLENDIA, G_CC_BLENDIA);
if (g_LasersightsActive) {
gdl = lasersightRenderDot(gdl);
}