mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-07-09 05:23:15 -04:00
Fix crash when equipping Mauler in multiplayer
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user