Fix save loading at the national desk, calendar colours, pointer size; add -debug
- Loading: a single-manager desk saved with DeskPosition == ManagerCount (the completed loop) is read as the first desk again instead of being refused as "not a savegame". - Calendar: text takes the original's six-row colour gradient (the flat colours were too dark next to the original). - Pointer: sized in window points, so it is not doubled on Retina screens. - Settings: the page names OpenBMH and shows the build version below. - Desk: the opponent's badge is shown whenever the data has one (documented difference); cup-only teams keep the computer portrait. - Live overview tests: Tabelle/Stärken/Spiele handovers, also with the Spiele page opened first. - New command line option -debug: timestamped log, stderr captured in a file, and a savegame after every match day in <saves>/debug. Refs #63, #65, #67, #68, #71, #73. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1e7df751a0
commit
38f69fa37b
15 files changed
+234
-13
No files matched your search
@@ -621,7 +621,10 @@ DeskState desk_from_game(const GameState& g, const LeImage& exe, uint64_t revisi
|
||||
*d.next_opponent < int(g.club_ids.size())) {
|
||||
const int opponent = *d.next_opponent;
|
||||
d.next_opponent_name = g.club_name(opponent);
|
||||
const bool fallback = original_badge_fallback(opponent,&exe);
|
||||
// OpenBMH deviates from the original: the desk shows the opponent's badge whenever the data has one.
|
||||
// The original draws a computer icon for the clubs between its two gate values (the foreign league
|
||||
// clubs); only the cup-only teams and the empty selector keep the icon.
|
||||
const bool fallback = (opponent & 0xfff) == 0xfff || (opponent >= 168 && opponent < 357);
|
||||
d.next_opponent_badge_fallback = fallback;
|
||||
if (!fallback) {
|
||||
const size_t badge_at = size_t(opponent) * 2;
|
||||
|
||||
Reference in new issue
Block a user