• R/O
  • SSH

zandronum-sandbox-stable: Commit


Commit MetaInfo

Revision7050397ab1eaff5f1db8d8385d1847b2fecf1d20 (tree)
Time2022-09-29 13:43:46
AuthorAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

Fixed: cl_medals also affected the server and could prevent players from earning any medals if disabled.

Change Summary

Incremental Difference

diff -r bbfcb1b52fd6 -r 7050397ab1ea docs/zandronum-history.txt
--- a/docs/zandronum-history.txt Tue Sep 27 09:02:35 2022 -0400
+++ b/docs/zandronum-history.txt Thu Sep 29 00:43:46 2022 -0400
@@ -80,6 +80,7 @@
8080 - - Fixed: cl_telespy still teleported a spectator when they were already looking through their own eyes. [Kaminsky]
8181 - - Fixed: rail attacks didn't always account for sv_shootthroughallies. [Kaminsky]
8282 - - Fixed: players didn't receive keys that were already found if respawning with a different class while sv_sharekeys was enabled. [Kaminsky]
83+- - Fixed: cl_medals also affected the server and could prevent players from earning any medals if disabled. [Kaminsky]
8384 ! - The result value of GAMEEVENT_MEDALS event scripts can now be used to determine whether or not the player receives the medal. [Kaminsky]
8485 ! - 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]
8586 ! - Added an extra check to ensure that game modes have a (short) name. [Kaminsky]
diff -r bbfcb1b52fd6 -r 7050397ab1ea src/medal.cpp
--- a/src/medal.cpp Tue Sep 27 09:02:35 2022 -0400
+++ b/src/medal.cpp Thu Sep 29 00:43:46 2022 -0400
@@ -303,7 +303,7 @@
303303 if (( ulPlayer >= MAXPLAYERS ) ||
304304 (( deathmatch || teamgame ) == false ) ||
305305 ( players[ulPlayer].mo == NULL ) ||
306- ( cl_medals == false ) ||
306+ (( NETWORK_GetState( ) != NETSTATE_SERVER ) && ( cl_medals == false )) ||
307307 ( zadmflags & ZADF_NO_MEDALS ) ||
308308 ( ulMedal >= NUM_MEDALS ))
309309 {
Show on old repository browser