• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Return-To-The-Roots / s25client / 21600910629

02 Feb 2026 05:42PM UTC coverage: 50.721% (-0.03%) from 50.754%
21600910629

Pull #1683

github

web-flow
Merge b0763ef2d into dc0ce04f6
Pull Request #1683: Lua: Allow setting number of players, and placing HQs. Then fix the mission on map "The snake"

1 of 29 new or added lines in 7 files covered. (3.45%)

5 existing lines in 2 files now uncovered.

22796 of 44944 relevant lines covered (50.72%)

41333.25 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

61.54
/libs/s25main/GameLobby.cpp
1
// Copyright (C) 2005 - 2021 Settlers Freaks (sf-team at siedler25.org)
2
//
3
// SPDX-License-Identifier: GPL-2.0-or-later
4

5
#include "GameLobby.h"
6
#include "JoinPlayerInfo.h"
7

8
GameLobby::GameLobby(bool isSavegame, bool isHost, unsigned numPlayers)
5✔
9
    : isSavegame_(isSavegame), isHost_(isHost), players_(numPlayers)
5✔
10
{}
5✔
11
GameLobby::~GameLobby() = default;
5✔
12

13
JoinPlayerInfo& GameLobby::getPlayer(unsigned playerId)
24✔
14
{
15
    return players_.at(playerId);
24✔
16
}
17

18
const JoinPlayerInfo& GameLobby::getPlayer(unsigned playerId) const
×
19
{
20
    return players_.at(playerId);
×
21
}
22

23
unsigned GameLobby::getNumPlayers() const
30✔
24
{
25
    return players_.size();
30✔
26
}
27

NEW
28
void GameLobby::setNumPlayers(unsigned num)
×
29
{
NEW
30
    players_.resize(num);
×
NEW
31
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc