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

[Ready] Vehicle health #448

merged 2 commits into from May 15, 2018


None yet
2 participants
Copy link

husho commented May 10, 2018

Minor changes, but this should make more missions playable, because now it's possible to "destroy" vehicles.


@husho husho changed the title Vehicle health [Ready] Vehicle health May 14, 2018

return true;
return vehicle->getHealth() <= arg2;

This comment has been minimized.


danhedron May 14, 2018


This comparison should be > based on the description of the opcode.

This comment has been minimized.


This comment has been minimized.


husho May 14, 2018


So I decided to recheck this opcode in scm and logically it seems that it should be >
Lesson learned - don't trust hex-rays decompiler. Sadly I can't really make sense out of FPU instructions, here's disassembly if someone wants to verify

P.S. original name matches logically IS_CAR_HEALTH_GREATER


@danhedron danhedron merged commit c6f5b54 into rwengine:master May 15, 2018

1 of 2 checks passed

continuous-integration/travis-ci/pr The Travis CI build could not complete due to an error
continuous-integration/appveyor/pr AppVeyor build succeeded

@husho husho deleted the husho:vehiclehealth branch May 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment