Skip to content
Browse files

matchmaking can only be used on maps with fixed player settings rathe…

…r than only on custom maps now

git-svn-id: http://ghostplusplus.googlecode.com/svn/trunk@414 a7494f72-a4b0-11dd-a887-7ffe1a420f8d
  • Loading branch information...
1 parent 7dd4181 commit fc3bdcf868f75b4936d16c640dc5e18095d3c514 hogantp committed Apr 4, 2010
Showing with 3 additions and 3 deletions.
  1. +1 −1 ghost/game_base.cpp
  2. +2 −2 ghost/ghost.cpp
View
2 ghost/game_base.cpp
@@ -1791,7 +1791,7 @@ void CBaseGame :: EventPlayerJoined( CPotentialPlayer *potential, CIncomingJoinP
}
}
- if( m_MatchMaking && m_AutoStartPlayers != 0 && !m_Map->GetMapMatchMakingCategory( ).empty( ) && m_Map->GetMapGameType( ) == GAMETYPE_CUSTOM )
+ if( m_MatchMaking && m_AutoStartPlayers != 0 && !m_Map->GetMapMatchMakingCategory( ).empty( ) && m_Map->GetMapOptions( ) & MAPOPT_FIXEDPLAYERSETTINGS )
{
// matchmaking is enabled
// start a database query to determine the player's score
View
4 ghost/ghost.cpp
@@ -1125,8 +1125,8 @@ bool CGHost :: Update( long usecBlock )
{
if( !m_Map->GetMapMatchMakingCategory( ).empty( ) )
{
- if( m_Map->GetMapGameType( ) != GAMETYPE_CUSTOM )
- CONSOLE_Print( "[GHOST] autohostmm - map_matchmakingcategory [" + m_Map->GetMapMatchMakingCategory( ) + "] found but matchmaking can only be used with custom maps, matchmaking disabled" );
+ if( !( m_Map->GetMapOptions( ) & MAPOPT_FIXEDPLAYERSETTINGS ) )
+ CONSOLE_Print( "[GHOST] autohostmm - map_matchmakingcategory [" + m_Map->GetMapMatchMakingCategory( ) + "] found but matchmaking can only be used with fixed player settings, matchmaking disabled" );
else
{
CONSOLE_Print( "[GHOST] autohostmm - map_matchmakingcategory [" + m_Map->GetMapMatchMakingCategory( ) + "] found, matchmaking enabled" );

0 comments on commit fc3bdcf

Please sign in to comment.
Something went wrong with that request. Please try again.