BE swap shop params, fix shop cursor projection, handle divide by zero in d_vibration, stub startLevelSound audio func

This commit is contained in:
CraftyBoss
2026-03-16 22:01:46 -07:00
parent a10f7b7806
commit e17c32f41e
4 changed files with 12 additions and 1 deletions
+5
View File
@@ -25,7 +25,12 @@ u16* makedata(u16* data, u32 pattern, s32 length) {
}
s32 rollshift(u32 pattern, s32 length, s32 index) {
#if AVOID_UB
if (length == 0)
index = 0;
#else
index %= length;
#endif
return (pattern >> index) | (pattern << (length - index));
}