isle-portable/extensions/include
Christian Semmler 3396d42db8
Fix vehicle filter bug and refactor: wrong index space in GetCharacterVehicleId
GetCharacterVehicleId used hardcoded g_characters[] indices but was
called with g_actorInfoInit[] indices. Since g_actorInfoInit has an
extra "infoman" entry at index 5, all characters after Laura were
off-by-one — bikers got the wrong vehicle and sy (Shiney Doris) fell
off the switch entirely, disabling filtering completely.

Replace with data-driven lookup (actorInfoInit name → g_characters
vehicleId), consolidate duplicate GetVehicleCategory into Catalog,
remove dead characterIndex field, fix stale g_characters comments,
remove temporary debug logging, and DRY local vehicle state computation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 10:33:07 -07:00
..
extensions Fix vehicle filter bug and refactor: wrong index space in GetCharacterVehicleId 2026-03-28 10:33:07 -07:00