Skip to content

Commit

Permalink
Fix bug with incorrect door tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
galaxyhaxz committed Sep 10, 2018
1 parent 4bdd504 commit ee56751
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/objects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1850,7 +1850,7 @@ void __fastcall AddL1Door(int i, int x, int y, int ot)
{
v9 = v5 + y;
v7 = dPiece[0][v5 + y];
v8 = dPiece[-4][v5 + y]; // *(_DWORD *)&dflags[28][4 * v9 + 32]; /* check */
v8 = dPiece[-1][v5 + y]; // *(_DWORD *)&dflags[28][4 * v9 + 32]; /* check */
}
object[v4]._oVar4 = 0;
object[v4]._oVar1 = v7;
Expand Down Expand Up @@ -3366,7 +3366,7 @@ void __fastcall OperateL1RDoor(int pnum, int oi, unsigned char sendflag)
ObjSetMicro(v5, v6, v7);
if ( object[v3]._oVar2 == 50 )
{
if ( dPiece[-4][v8] == 396 ) /* check *(_DWORD *)&dflags[28][4 * v8 + 32] == 396 ) */
if ( dPiece[-1][v8] == 396 ) /* check *(_DWORD *)&dflags[28][4 * v8 + 32] == 396 ) */
ObjSetMicro(v5 - 1, v6, 411);
else
ObjSetMicro(v5 - 1, v6, 50);
Expand Down

0 comments on commit ee56751

Please sign in to comment.