Skip to content

Commit

Permalink
Fixing lobby showing user created games with no players in them.
Browse files Browse the repository at this point in the history
  • Loading branch information
BackTrak committed Mar 11, 2024
1 parent 3fa4803 commit 81c5056
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Inc/SlmVer.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// mmf modified version, these set FileVersion and ProductVersion used by VerRes.rc
#define rmj 1
#define rmm 9 // Imago (R#)
#define rel 1040115.00 // mmf added to designate release number for a given build
#define rel 1040132.00 // mmf added to designate release number for a given build

#define rup 271235 // mmf make sure this has 6 digits otherwise version number conversion for esc display may fail,
#define rup 300313 // mmf make sure this has 6 digits otherwise version number conversion for esc display may fail,
// rup is specified in octal, so for instance 11/9/2010 (US format)
// Year: 2010 - use last two digits: 10, convert to octal = 12.
// Month: 11 - convert to octal = 13
Expand Down
3 changes: 2 additions & 1 deletion src/lobby/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ void QueueMissions(FedMessaging * pfm)
{
FMD_LS_LOBBYMISSIONINFO * plmi = iterMissions.Value()->GetMissionInfo();
//imago 7/1/09 removed old checks
if (plmi)// && (fIsFreeLobby || plmi->nNumPlayers > 0 || plmi->fMSArena
// BT - 3/11/2024 only return missions with at least one player.
if (plmi && (plmi->nNumPlayers > 0 || plmi->fMSArena == true))// && (fIsFreeLobby || plmi->nNumPlayers > 0 || plmi->fMSArena
//|| (!fIsFreeLobby && strcmp(FM_VAR_REF(plmi,szIGCStaticFile),"zone_core")))) //-KGJV: advertize custom core game
pfm->QueueExistingMsg(plmi);
iterMissions.Next();
Expand Down
3 changes: 2 additions & 1 deletion src/lobby/mission.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ void CFLMission::SetLobbyInfo(FMD_LS_LOBBYMISSIONINFO * plmi)
}

// never advertize paused games - imago 7/1/09 removed old checks
if (!pServer->GetPaused()) //&&
// BT - 3/11/2024 only return missions with at least one player.
if (!pServer->GetPaused() && (m_plmi->nNumPlayers > 0 || m_plmi->fMSArena)) //&&
//(g_pLobbyApp->EnforceCDKey() || m_plmi->nNumPlayers > 0 || m_plmi->fMSArena ||
//(!g_pLobbyApp->IsFreeLobby() && strcmp(FM_VAR_REF(m_plmi,szIGCStaticFile),"zone_core")) // -KGJV - advertise custom core game on FAZ
//))
Expand Down

0 comments on commit 81c5056

Please sign in to comment.