paavohtl Claude Opus 4.6 (1M context) commited on
Commit
3f2b67c
·
1 Parent(s): dfcb0dd

cleanup: remove dead host player flag check in replay parser

Browse files

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

crates/openwa-wormkit/src/replacements/replay.rs CHANGED
@@ -393,9 +393,7 @@ unsafe fn parse_and_write_v2plus(
393
  wb(base, flag);
394
  if flag == 0 { continue; }
395
 
396
- if i as u32 == *(rb(va::G_HOST_PLAYER) as *const u32) {
397
- // This is the host player — set local_11 flag
398
- }
399
  player_count += 1;
400
 
401
  let mut name = [0u8; 0x11];
 
393
  wb(base, flag);
394
  if flag == 0 { continue; }
395
 
396
+ // NOTE: original checks if i == host_player_index here (sets a local flag, unused)
 
 
397
  player_count += 1;
398
 
399
  let mut name = [0u8; 0x11];