You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The game naively assumes that all cars have up to 8 gears (R, N and 1..6) and use HGEARS.PIX.
However, Suppressor has 11 gears and uses HGEARS4.PIX, a bitmap with a different height. This messes up gear mask calculation:
... and causes a buffer overflow on higher gears, where garbage is displayed instead of gear numbers.
This bug is also present in OG.
The text was updated successfully, but these errors were encountered:
zear
added a commit
to zear/dethrace
that referenced
this issue
Dec 2, 2022
Fix misaligned gear mask and a buffer overflow for cars which use more
than 8 gears, and thus pixelmaps other than HGEARS.PIX.
Signed-off-by: Artur Rojek <contact@artur-rojek.eu>
Fix misaligned gear mask and a buffer overflow for cars which use more
than 8 gears, and thus pixelmaps other than HGEARS.PIX.
Signed-off-by: Artur Rojek <contact@artur-rojek.eu>
Fix misaligned gear mask and a buffer overflow for cars which use more
than 8 gears, and thus pixelmaps other than HGEARS.PIX.
Signed-off-by: Artur Rojek <contact@artur-rojek.eu>
The game naively assumes that all cars have up to 8 gears (R, N and 1..6) and use HGEARS.PIX.
However, Suppressor has 11 gears and uses HGEARS4.PIX, a bitmap with a different height. This messes up gear mask calculation:
... and causes a buffer overflow on higher gears, where garbage is displayed instead of gear numbers.
This bug is also present in OG.
The text was updated successfully, but these errors were encountered: