Pitch photographs lie behind the match sheet; a managed ground shows how full it is
The stadium pictures give way to nine photographs of the pitch, used unscaled. The live read carries the capacity of a managed home ground. The manager's eleven stays on the team page after the final whistle, and the cards of two to four matches keep their grid. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
13f5b1e4d4
commit
20b8406763
42 files changed
+73
-213
No files matched your search
@@ -37,9 +37,18 @@ bool App::live_open() {
|
||||
refresh(); return true;
|
||||
}
|
||||
bool App::engine_live_open(const Json &recording) {
|
||||
const auto fixture = engine_live_fixture(recording, engine_data_);
|
||||
auto fixture = engine_live_fixture(recording, engine_data_);
|
||||
// after a kickoff that was followed live the ticker stays on the final whistle
|
||||
const bool at_end = engine_live_at_end_ && scene_ == "live";
|
||||
// ... and the manager's eleven stays the one that finished the match, whatever desk the day ends on
|
||||
if (at_end && fixture.value("ok", false) && !engine_live_roster_.empty())
|
||||
for (auto &owner : fixture.at("owners"))
|
||||
if (owner.at("id") == live_.owner() && owner.contains("view") && owner.at("view").is_object()) owner["view"]["rows"] = engine_live_roster_;
|
||||
// ... and each ground keeps the places the running match knew
|
||||
if (at_end && fixture.value("ok", false) && live_.available())
|
||||
for (auto &match : fixture.at("matches"))
|
||||
for (const auto &known : live_.fixture().at("matches"))
|
||||
if (known.at("home").at("id") == match.at("home").at("id") && known.contains("capacity") && !match.contains("capacity")) match["capacity"] = known.at("capacity");
|
||||
engine_live_at_end_ = false;
|
||||
if (!fixture.value("ok", false) || !(at_end ? live_.follow(fixture) : live_.open(fixture, ""))) {
|
||||
engine_notice_ = "Spieltag gespielt · Der Ticker kann diese Aufzeichnung nicht zeigen (" +
|
||||
|
||||
Reference in new issue
Block a user