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

Fix APC/BIGAPC wheels when player wasted equivalent cop car in previous race #428

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

b-kurczynski
Copy link
Contributor

@b-kurczynski b-kurczynski commented Dec 16, 2024

This is a fix to a bug which existed in original game. If player wasted a cop car driving a cop car then in next race player's APC wheels do not rotate nor turn in any direction. The same applies in case Suppressor is wasted by Suppressor.

The fix works by reloading player's car when race is loading in case of APC or BIGAPC is being driven. The reload routine is a fork of >>this<< part.

// Player's APC/BIGAPC wheels got stuck if the equivalent cop car was wasted in previous race
if(strcmp(gProgram_state.car_name, "APC.TXT") == 0 ||
strcmp(gProgram_state.car_name, "BIGAPC.TXT") == 0) {
AboutToLoadFirstCar();
Copy link
Owner

Choose a reason for hiding this comment

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

I don't think this is required, or the calls to switch resolution, or SetCarStorageTexturingLevel.

could you try without these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That was my first approach but it didn't look good
image

The HUD is completely misaligned and cockpit view is in lowres even when hires is enabled. After that I decided to repeat complete "science & magic" that happens on regular car change and that started to work.

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.

2 participants