Commit MetaInfo

Revision42b7db4bc8b2d4612df7ca8845333cc260343b8f (tree)
Time2021-01-11 06:26:11
AuthorBenjamin Berkels <torr.samaho@quan...>
CommiterBenjamin Berkels

Log Message

renamed D_CompareFlagset to SERVER_FlagsetChanged (Dusk pointed out that this function only does something if called on the server)

Change Summary

Incremental Difference

diff -r 20b022748668 -r 42b7db4bc8b2 src/d_main.cpp
--- a/src/d_main.cpp Sun Jan 10 14:24:45 2021 -0500
+++ b/src/d_main.cpp Sun Jan 10 22:26:11 2021 +0100
@@ -402,7 +402,7 @@
402402
403403 //==========================================================================
404404 //
405-// [AK] D_CompareFlagset
405+// [AK] SERVER_FlagsetChanged
406406 //
407407 // Lists all flag-type CVars belonging to a particular flagset which have
408408 // been changed through modification of the flagset, then prints them to the
@@ -412,7 +412,7 @@
412412 //
413413 //==========================================================================
414414
415-void D_CompareFlagset( FIntCVar& flagset, int maxflags = 2 )
415+void SERVER_FlagsetChanged( FIntCVar& flagset, int maxflags = 2 )
416416 {
417417 int value = static_cast<int>( flagset );
418418 int oldValue = flagset.GetPastValue( );
@@ -509,7 +509,7 @@
509509
510510 // [BC] If we're the server, tell clients that the dmflags changed.
511511 // [AK] Moved everything into a separate function to avoid code duplication.
512- D_CompareFlagset( self );
512+ SERVER_FlagsetChanged( self );
513513 }
514514
515515 CVAR (Flag, sv_nohealth, dmflags, DF_NO_HEALTH);
@@ -561,7 +561,7 @@
561561 {
562562 // [BC] If we're the server, tell clients that the dmflags changed.
563563 // [AK] Moved everything into a separate function to avoid code duplication.
564- D_CompareFlagset( self );
564+ SERVER_FlagsetChanged( self );
565565
566566 // Stop the automap if we aren't allowed to use it.
567567 if ((self & DF2_NO_AUTOMAP) && automapactive)
@@ -651,7 +651,7 @@
651651
652652 // [BB] If we're the server, tell clients that the dmflags changed.
653653 // [AK] Moved everything into a separate function to avoid code duplication.
654- D_CompareFlagset( self );
654+ SERVER_FlagsetChanged( self );
655655
656656 #ifndef NO_GL
657657 // [BB/EP] This makes gl_lightmode and gl_distfog handle ZADF_FORCE_VIDEO_DEFAULTS.
@@ -723,7 +723,7 @@
723723
724724 // [BC] If we're the server, tell clients that the dmflags changed.
725725 // [AK] Moved everything into a separate function to avoid code duplication.
726- D_CompareFlagset( self );
726+ SERVER_FlagsetChanged( self );
727727 }
728728
729729 // [BB] Removed the CVAR_ARCHIVE flag.
@@ -733,7 +733,7 @@
733733
734734 // [BB] If we're the server, tell clients that compatflags2 changed.
735735 // [AK] Moved everything into a separate function to avoid code duplication.
736- D_CompareFlagset( self );
736+ SERVER_FlagsetChanged( self );
737737 }
738738
739739 //==========================================================================
@@ -746,7 +746,7 @@
746746 {
747747 // [BC] If we're the server, tell clients that the dmflags changed.
748748 // [AK] Moved everything into a separate function to avoid code duplication.
749- D_CompareFlagset( self );
749+ SERVER_FlagsetChanged( self );
750750 }
751751
752752 // [TP] Added CVAR_SERVERINFO
Show on old repository browser