Files
Cesarus85--mjolnir-vr/source/game
Jonas Volman 4dfd0ece20 player_control: write unit_get_local_player_index (byte-exact)
Reads unit->unit.player_index (+0x1C8 via unit_get, which the target confirms
by passing mask 3), and maps it through player_get to local_player_index (+2 in
player_datum).

Branch polarity is the load-bearing detail: writing the NONE check as an early
return puts the cold path inline and leaves 28 bytes off. Testing the positive
case and returning NONE at the end reproduces January's layout (je to an
out-of-line tail) exactly. The ternary form is 7 off, a result-variable form 31.

Verified strict; player_control now 37 exact.
2026-08-20 16:19:22 -07:00
..
2025-11-27 02:27:27 +00:00
2026-08-13 05:30:26 -07:00
2026-07-15 08:09:15 -07:00
2025-11-27 02:27:27 +00:00
2026-07-15 17:18:03 -07:00
2025-11-27 02:27:27 +00:00
2026-07-15 17:19:22 -07:00
2026-07-14 18:21:53 -07:00
2026-07-14 18:21:53 -07:00
2026-07-15 17:22:49 -07:00
2026-07-14 17:14:26 -07:00
2025-11-27 02:27:27 +00:00
2026-07-15 13:38:42 -07:00
2025-11-27 02:27:27 +00:00
2026-07-14 15:00:16 -07:00
2025-11-27 02:27:27 +00:00
2025-11-27 02:27:27 +00:00
2026-07-26 00:16:54 -07:00
2026-08-20 15:39:29 -07:00