mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-05-02 10:33:57 +00:00
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> |
||
|---|---|---|
| .. | ||
| extensions | ||