From d41d66464439de2ebb6627af9a9ef4a59d427737 Mon Sep 17 00:00:00 2001 From: Ian Date: Fri, 17 Feb 2023 14:48:32 -0500 Subject: [PATCH 1/2] Restore old sceGuAlphaFunc --- source/psp/video_hardware_surface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/psp/video_hardware_surface.cpp b/source/psp/video_hardware_surface.cpp index e23f5bb..1d52ccf 100644 --- a/source/psp/video_hardware_surface.cpp +++ b/source/psp/video_hardware_surface.cpp @@ -912,7 +912,7 @@ void R_RenderBrushPoly (msurface_t *fa) } sceGuEnable(GU_ALPHA_TEST); - sceGuAlphaFunc(GU_GREATER, 0x88, 0xff); + sceGuAlphaFunc(GU_GREATER, 0xaa, 0xff); sceGuTexFunc(GU_TFX_MODULATE, GU_TCC_RGBA); // motolegacy -- use our new texflag hack From 84835d334afa2d7db75717e338175141a787e933 Mon Sep 17 00:00:00 2001 From: Ian Date: Mon, 27 Feb 2023 10:38:01 -0500 Subject: [PATCH 2/2] Fix bprint not reading OFS_PARM0 --- source/pr_cmds.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/source/pr_cmds.c b/source/pr_cmds.c index cc318f3..75ab801 100644 --- a/source/pr_cmds.c +++ b/source/pr_cmds.c @@ -277,17 +277,15 @@ void PF_setmodel (void) /* ================= PF_bprint - broadcast print to everyone on server - -bprint(value) +bprint(style, value) ================= */ void PF_bprint (void) { - char *s; - - s = PF_VarString(0); + // + float style = G_FLOAT(OFS_PARM0); + char *s = PF_VarString(1); SV_BroadcastPrintf ("%s", s); }