Introduce explicit Classic and expanded 1.1 data profile dimensions (by Codex)

This commit is contained in:
Codex committed 2026-10-31 09:48:45 +01:00
1 parent b2a6300aad
commit ff05d4f28a
12 files changed
+132 -8

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ int div8(int x) { return x / 8; }
} // namespace
GameState GameState::from_save(const SaveState& save, const DbCounts& c) {
GameState g;
GameState g; g.counts=c;
const SaveBlock& squads = save.block(::bmh::layout::SquadSlots);
for (size_t i = 0; i + 1 < squads.size; i += 2)
g.squad_slots.push_back(uint16_t(save.data(::bmh::layout::SquadSlots)[i] | save.data(::bmh::layout::SquadSlots)[i + 1] << 8));