Modern UI contract: national friendlies

At the national coach's desk the friendly read quotes a match against
another nation on a copy of the Watcom generator (price, payer, ratings,
free dates); friendly.book draws the same ratings and books it. The
opponent bound of the national quote follows the world layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-10-27 14:24:47 +01:00
1 parent d3d526c2e4
commit d943494ef4
4 files changed
+107 -7

No files matched your search

+1 -1
View File
@@ -132,7 +132,7 @@ NationalFriendlyQuote make_national_friendly_quote(const ModernState& g,
return out;
}
// Page 4 cannot return Germany (0); the engine boundary repeats that gate.
if (opponent <= no_team() || opponent > 0x1a2 || opponent == no_team()) {
if (opponent <= no_team() || opponent >= world_layout().total_teams()) {
out.terms.status = FriendlyQuoteStatus::invalid_opponent;
return out;
}