From de02c0bca9cf6eb7cdddd6757b6d959c6a71d730 Mon Sep 17 00:00:00 2001 From: toaster Date: Thu, 22 Nov 2018 18:28:27 +0000 Subject: [PATCH 1/2] Turns out your unlocks are delayed a little bit! The medals are saved, but the unlocks due to the medals aren't immediate... which is a problem for Hell Attack, since there's no indication you need to play another level for it all to work!!! --- src/y_inter.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/y_inter.c b/src/y_inter.c index be3bc74e..2158d425 100644 --- a/src/y_inter.c +++ b/src/y_inter.c @@ -712,6 +712,9 @@ static void Y_UpdateRecordReplays(void) if ((earnedEmblems = M_CheckLevelEmblems())) CONS_Printf(M_GetText("\x82" "Earned %hu medal%s for Record Attack records.\n"), (UINT16)earnedEmblems, earnedEmblems > 1 ? "s" : ""); + if (M_UpdateUnlockablesAndExtraEmblems(false)) + S_StartSound(NULL, sfx_ncitem); + // SRB2Kart - save here so you NEVER lose your earned times/medals. G_SaveGameData(false); From f7eea7ade39346effb7e9208f0708e9db861f21e Mon Sep 17 00:00:00 2001 From: Monster Iestyn Date: Thu, 22 Nov 2018 20:08:57 +0000 Subject: [PATCH 2/2] Fix compiler errors --- src/hardware/r_opengl/r_opengl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c index 179dbaad..ce543158 100644 --- a/src/hardware/r_opengl/r_opengl.c +++ b/src/hardware/r_opengl/r_opengl.c @@ -112,10 +112,10 @@ static GLint viewport[4]; // These need to start at 0 and be set to their number, and be reset to 0 when deleted so that intel GPUs // can know when the textures aren't there, as textures are always considered resident in their virtual memory // TODO: Store them in a more normal way -#define SCRTEX_SCREENTEXTURE 4294967295 -#define SCRTEX_STARTSCREENWIPE 4294967294 -#define SCRTEX_ENDSCREENWIPE 4294967293 -#define SCRTEX_FINALSCREENTEXTURE 4294967292 +#define SCRTEX_SCREENTEXTURE 4294967295U +#define SCRTEX_STARTSCREENWIPE 4294967294U +#define SCRTEX_ENDSCREENWIPE 4294967293U +#define SCRTEX_FINALSCREENTEXTURE 4294967292U static GLuint screentexture = 0; static GLuint startScreenWipe = 0; static GLuint endScreenWipe = 0;