• R/O
  • SSH

zandronum-sandbox-stable: Commit


Commit MetaInfo

Revision4a2c7d737cb95918c8755573a21b6eb94f6a6400 (tree)
Time2022-10-02 23:18:37
AuthorAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

If a flagset changes on the server's end, check to make sure that at least one flag has actually changed before including it in the broadcast message.

Change Summary

Incremental Difference

diff -r 8e83c7303d95 -r 4a2c7d737cb9 src/sv_main.cpp
--- a/src/sv_main.cpp Sun Oct 02 10:04:13 2022 -0400
+++ b/src/sv_main.cpp Sun Oct 02 10:18:37 2022 -0400
@@ -4480,7 +4480,10 @@
44804480 if ( flagsChanged > maxflags )
44814481 result.Format( "%d flags changed", flagsChanged );
44824482
4483- SERVER_Printf( "%s changed to: %d (%s)\n", flagset.GetName( ), value, result.GetChars() );
4483+ if ( result.IsNotEmpty( ))
4484+ SERVER_Printf( "%s changed to: %d (%s)\n", flagset.GetName( ), value, result.GetChars( ));
4485+ else
4486+ SERVER_Printf( "%s changed to: %d\n", flagset.GetName( ), value );
44844487
44854488 // [AK] We also need to tell the clients to update the changed flagset.
44864489 if ( &flagset == &lmsspectatorsettings )
Show on old repository browser