The only hacky/questionable thing I did here was I made a struct for the array. It may just be a multi dimensional s16 array. But having it as a struct allows us to give the values meaningful names.
Added a fix for the PSP build. PSX uses s16 for the temp var for zPriority, psp uses s32.
Maybe there is some macro or something that can reconcile that, but I am not sure.
The only hacky/questionable thing I did here was I made a struct for the array. It may just be a multi dimensional s16 array. But having it as a struct allows us to give the values meaningful names.
PSX: https://decomp.me/scratch/vKcYn PSP: https://decomp.me/scratch/8RAYb