# HG changeset patch # User Adam Kaminski # Date 1628437491 14400 # Sun Aug 08 11:44:51 2021 -0400 # Node ID 8e8d1d23b24f0378dde31cd6945f703b701e2d34 # Parent 8c7dd1821811117a18f40b86d02f8383a84f29f6 Also print the mininum or maximum player counts when adding/inserting a map to the rotation. diff -r 8c7dd1821811 -r 8e8d1d23b24f src/maprotation.cpp --- a/src/maprotation.cpp Fri Aug 06 12:03:02 2021 -0400 +++ b/src/maprotation.cpp Sun Aug 08 11:44:51 2021 -0400 @@ -406,7 +406,30 @@ MAPROTATION_SetPositionToMap( level.mapname ); if ( !bSilent ) - Printf( "%s (%s) added to map rotation list at position %d.\n", pMap->mapname, pMap->LookupLevelName( ).GetChars( ), iPosition); + { + FString message; + message.Format( "%s (%s) added to map rotation list at position %d", pMap->mapname, pMap->LookupLevelName( ).GetChars( ), iPosition ); + + if (( newEntry.ulMinPlayers > 0 ) || ( newEntry.ulMaxPlayers < MAXPLAYERS )) + { + message += " ("; + + if ( newEntry.ulMinPlayers > 0 ) + message.AppendFormat( "min = %lu", newEntry.ulMinPlayers ); + + if ( newEntry.ulMaxPlayers < MAXPLAYERS ) + { + if ( newEntry.ulMinPlayers > 0 ) + message += ", "; + + message.AppendFormat( "max = %lu", newEntry.ulMaxPlayers ); + } + + message += ')'; + } + + Printf( "%s.\n", message ); + } // [AK] If we're the server, tell the clients to add the map on their end. if ( NETWORK_GetState( ) == NETSTATE_SERVER )