Commit MetaInfo

Revisión1601b1b423d9a25102d821b224013a9ac68a395d (tree)
Tiempo2023-11-08 01:14:46
AutorAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

Fixed: the coop info wasn't getting drawn in clientside demos.

Cambiar Resumen

Diferencia incremental

diff -r ee032c70c27b -r 1601b1b423d9 docs/zandronum-history.txt
--- a/docs/zandronum-history.txt Tue Aug 29 16:24:40 2023 -0400
+++ b/docs/zandronum-history.txt Tue Nov 07 11:14:46 2023 -0500
@@ -105,6 +105,7 @@
105105 - - Fixed: backslashes were not being included in chat messages correctly. [Kaminsky]
106106 - - Fixed: flags in CTF could be captured after the round was over. [auratoostronk]
107107 - - Fixed: opening the text scaling menu sometimes changed the user's con_virtualwidth and/or con_virtualheight CVars when it shouldn't. [Kaminsky]
108+- - Fixed: the coop info wasn't getting drawn in clientside demos. [Kaminsky]
108109 ! - The result value of GAMEEVENT_MEDALS event scripts can now be used to determine whether or not the player receives the medal. [Kaminsky]
109110 ! - GAMEMODE flags are now validated after all GAMEMODE lumps have been parsed instead of after each one. The internal game mode name (e.g. "TeamLMS") is now printed with the error message instead of the actual name. [Kaminsky]
110111 ! - Added an extra check to ensure that game modes have a (short) name. [Kaminsky]
diff -r ee032c70c27b -r 1601b1b423d9 src/g_shared/st_hud.cpp
--- a/src/g_shared/st_hud.cpp Tue Aug 29 16:24:40 2023 -0400
+++ b/src/g_shared/st_hud.cpp Tue Nov 07 11:14:46 2023 -0500
@@ -674,8 +674,12 @@
674674 return;
675675
676676 // [BB] Only draw the info if this is a cooperative or team based game mode. Further don't draw this in single player.
677- if ( !( GAMEMODE_GetCurrentFlags() & ( GMF_COOPERATIVE | GMF_PLAYERSONTEAMS )) || ( NETWORK_GetState() == NETSTATE_SINGLE ))
677+ // [AK] But still draw the info in a clientside demo.
678+ if ((( GAMEMODE_GetCurrentFlags( ) & ( GMF_COOPERATIVE | GMF_PLAYERSONTEAMS )) == false ) ||
679+ (( NETWORK_GetState( ) == NETSTATE_SINGLE ) && ( CLIENTDEMO_IsPlaying( ) == false )))
680+ {
678681 return;
682+ }
679683
680684 FString drawString;
681685
Show on old repository browser