Devilution: [hellfire] OperateL2Door - Please check bin exactness

Created on 27 May 2020  路  10Comments  路  Source: diasurgical/devilution

When the code was decompiled, the comparison was not the same.
Please check the assembler code.

OperateL2Door

Most helpful comment

Happy to see you join us in the reversing efforts @Chance4us :)

All 10 comments

It's known that it's not bin exact for hellfire: https://github.com/diasurgical/devilution/issues/1397

That's why I decompiled it. It looks a little different in the picture above.
Look at the yellow dots. It should be checked whether the changes will lead to bin exactness.

If you like we can help you setup the tools so that you can check and make a pull request that makes it bin exact

Yes. Thank you. That would be helpful. I'll be asking some questions about the tools soon if that's okay.

Definitely. Though it would be easiest via chat, there is even a channel there with a guide for how to get things running for working on Hellfire.

Happy to see you join us in the reversing efforts @Chance4us :)

Thank you also for the effort of all of you guys.
Can anyone describe how I can join the chat channel?

Thank you @qndel

void OperateL2Door(int pnum, int i, DIABOOL sendflag)
{
    int dpx, dpy;

    dpx = abs(object[i]._ox - plr[pnum]._px);
    dpy = abs(object[i]._oy - plr[pnum]._py);
    if (dpx == 1 && dpy <= 1 && object[i]._otype == OBJ_L2LDOOR)
        OperateL2LDoor(pnum, i, sendflag);
    if (dpx <= 1 && dpy == 1 && object[i]._otype == OBJ_L2RDOOR)
        OperateL2RDoor(pnum, i, sendflag);
}

bin exact in this form

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AJenbo picture AJenbo  路  8Comments

ghost picture ghost  路  7Comments

ghost picture ghost  路  6Comments

nomdenom picture nomdenom  路  9Comments

AJenbo picture AJenbo  路  9Comments