Skip to content

[hellfire] ProcessMissiles bin exact#1568

Merged
AJenbo merged 1 commit intodiasurgical:hellfirefrom
qndel:ProcessMissiles
Sep 8, 2019
Merged

[hellfire] ProcessMissiles bin exact#1568
AJenbo merged 1 commit intodiasurgical:hellfirefrom
qndel:ProcessMissiles

Conversation

@qndel
Copy link
Member

@qndel qndel commented Sep 8, 2019

No description provided.

#ifdef HELLFIRE
if (missile[missileactive[i]]._miDelFlag == TRUE) {
#else
if (missile[missileactive[i]]._miDelFlag) {
Copy link
Member

Choose a reason for hiding this comment

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

can you check if != FALSE works for both

Copy link
Member Author

Choose a reason for hiding this comment

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

it doesn't

Copy link
Member

Choose a reason for hiding this comment

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

I wonder if maybe _miDelFlag was changed from BOOL to bool and that's the difference?

Copy link
Member Author

Choose a reason for hiding this comment

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

well, the asm in hellfire says cmp dword ptr [eax+0x697A8C], 0x01

Copy link
Member

Choose a reason for hiding this comment

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

What an ugly and useless refactor :D

Copy link
Member Author

Choose a reason for hiding this comment

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

indeed :P

@AJenbo AJenbo merged commit ce4bbd6 into diasurgical:hellfire Sep 8, 2019
@AJenbo AJenbo deleted the ProcessMissiles branch September 8, 2019 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants