Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes + add TestAutoSpecialVolume (=underwater) #237

Merged
merged 22 commits into from
Nov 11, 2022

Conversation

madebr
Copy link
Collaborator

@madebr madebr commented Nov 9, 2022

  • Fix crash at the end of a race when playing the splatpack (non-xmas) demo: the splatpack demo plays a smk, whereas the xmas demo displays a flic
  • Simplify a few functions by switching if/else branches to reduce indentation and using BrXXX functions/macro's
  • Fix DecodeLine2 + tools/decode_datatxt.py so the coments become readable
  • Implement StopGroovidelic
  • Implement `TestAutoSpecialVolume: this increases the drag underwater
    Fixes No difference in handling underwater #194
  • I removed the stub in DrawTheGlow.
    This change might be a bit controversial as it might introduces more crashes.
    But I think this is good so we can find the bug sooner.
    Either case, the crash in SmokeLine happens on my system too with stubbing this function.
  • Fix address sanitizer warning when riding the APC car
  • add --full-screen command line option to start DethRace in full screen mode
  • Make the mouse pointer behave well when using hires by scaling the coordinates
    Fixes Cursor position scaled incorrectly in -hires mode #218
  • Fixes IWANTTOFIDDLE. Tested with Carmageddon 1 full game data by encoding/decoding the data a few times.

@@ -1795,7 +1795,11 @@ void LoadCar(char* pCar_name, tDriver pDriver, tCar_spec* pCar_spec, int pOwner,
FatalError(kFatalError_FileCorrupt_S, pCar_name);
}
if (*pDriver_name != '\0') {
#if defined(DETHRACE_FIX_BUGS)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you add a comment documenting what the bug is that we are fixing?

for (i = 0; i < len; i++) {
c = pS[i];
#if defined(DETHRACE_FIX_BUGS)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a comment documenting the original bug behavior?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The OG game (carm95.exe at least) does not do this.
It keeps the original key and does not decode the comments with the alternative key.
I'll add this as a comment.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that would be great, thanks.

if (gEncryption_method == 1) {
if (c == '\t') {
c = 0x80;
c = 0x9f;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, good spotting. Dont know how I got encryption methods round the wrong way! 🤔

Copy link
Owner

@dethrace-labs dethrace-labs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@madebr madebr merged commit 4c9795a into dethrace-labs:main Nov 11, 2022
@madebr madebr deleted the next-fixes branch November 11, 2022 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cursor position scaled incorrectly in -hires mode No difference in handling underwater
2 participants