# HG changeset patch # User Adam Kaminski # Date 1631426794 14400 # Sun Sep 12 02:06:34 2021 -0400 # Node ID fabec644a27d69112fe6ab6786befd18d849bf46 # Parent e956cc7721cd5bde79971373ca513ab4baab114e Don't render the medals screen on game modes that players can't earn medals in. diff -r e956cc7721cd -r fabec644a27d src/d_main.cpp --- a/src/d_main.cpp Sat Sep 11 18:40:06 2021 -0400 +++ b/src/d_main.cpp Sun Sep 12 02:06:34 2021 -0400 @@ -1046,7 +1046,8 @@ MEDAL_Render( ); // Render all medals the player currently has. - if ( Button_ShowMedals.bDown ) + // [AK] Only on game modes that players can earn medals in. + if (( Button_ShowMedals.bDown ) && ( cooperative == false )) { if (( players[consoleplayer].camera != NULL ) && ( players[consoleplayer].camera->player != NULL )) MEDAL_RenderAllMedalsFullscreen( players[consoleplayer].camera->player ); // [CK] Fixed 'mo' to 'camera' (which was probably intended) @@ -1065,7 +1066,8 @@ WI_Drawer (); // Render all medals the player currently has. - if ( Button_ShowMedals.bDown ) + // [AK] Only on game modes that players can earn medals in. + if (( Button_ShowMedals.bDown ) && ( cooperative == false )) { if (( players[consoleplayer].camera != NULL ) && ( players[consoleplayer].camera->player != NULL )) MEDAL_RenderAllMedalsFullscreen( players[consoleplayer].camera->player );