Team id comparisons ask the world layout

92 comparisons against the raw numbers 138, 168 and 357 in engine, UI and app
read world_layout().league_teams, first_foreign_cup() and no_team(); a team id
written as 0x165 is kNoTeam. Same values, same arithmetic.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude committed 2026-11-10 23:16:53 +01:00
1 parent cb6d3b6035
commit d552c59a77
29 files changed
+94 -93

No files matched your search

+1
View File
@@ -14,6 +14,7 @@
#include "formats/m3d.hpp"
#include "formats/savestate.hpp"
#include "game/world_layout.hpp"
#include "formats/textd.hpp"
#include "game/memory.hpp"
#include "game/random.hpp"