Port two transfer fixes to the Modern core
A new arrival no longer inherits the previous occupant's board flags, and a player who is already listed is not listed a second time (from OpenBMH 1.0.3). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
f2dcf94d2b
commit
8370b5fe60
3 files changed
+15
No files matched your search
@@ -77,6 +77,9 @@ void new_board_entry(ModernState& g, int manager, int index, int slot, WatcomRan
|
||||
uint8_t* e = &g.tactics.at(size_t(manager) * kBoard + size_t(index) * kBoardSlot);
|
||||
std::memset(e + 7, 0, 3);
|
||||
std::memset(e + 0x19, 0, 0x24);
|
||||
// Deviates from the original: a new arrival does not inherit the previous occupant's
|
||||
// retirement, refusal and month-processing flags.
|
||||
e[0xb] = 0;
|
||||
e[10] = 2;
|
||||
for (int k = 0; k < 4; k++) e[2 + k] = index < 2 ? 1 : uint8_t(rand.range(2, 0x27));
|
||||
e[0x3f] = 0xff;
|
||||
|
||||
Reference in new issue
Block a user