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

Reversed IsEngineOn, GetSiren and GetBeaconLightsOn #90

Merged
merged 10 commits into from
Feb 5, 2024

Conversation

Segfaultd
Copy link
Member

@Segfaultd Segfaultd commented Feb 5, 2024

PR closes #73

Won't address the TODOs for now so lets keep it like this

@Segfaultd Segfaultd marked this pull request as ready for review February 5, 2024 19:29
@Segfaultd Segfaultd requested review from Deewarz and zpl-zak and removed request for Deewarz February 5, 2024 19:29
Copy link
Contributor

@Deewarz Deewarz left a comment

Choose a reason for hiding this comment

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

You can remove these TODOs then :

Comment on lines +23 to +24
ImGui::Text("Car Ptr: %p", currentCar);
ImGui::Text("Vehicle Ptr: %p", currentVehicle);
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

not anymore :-)

Comment on lines +105 to +108
bool isEngineOn = currentCar->IsEngineOn();
if (ImGui::Checkbox("Engine", &isEngineOn)) {
currentVehicle->SetEngineOn(isEngineOn, isEngineOn);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Just to be sure, getter is on Car and setter on Vehicle?

Copy link
Member Author

Choose a reason for hiding this comment

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

exactly

@Segfaultd Segfaultd merged commit 550a4a3 into master Feb 5, 2024
1 check passed
@Segfaultd Segfaultd deleted the reversing/vehicle-improvements branch February 5, 2024 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

C_Vehicle: reverse IsEngineOn, GetSiren and GetBeaconLightsOn
3 participants