Browse Source

AddL1Door cleanup

pull/513/head
qndel 6 years ago committed by Anders Jenbo
parent
commit
8ab71cb98b
  1. 12
      Source/objects.cpp

12
Source/objects.cpp

@ -966,18 +966,14 @@ void SetBookMsg(int i, int msg)
void AddL1Door(int i, int x, int y, int ot)
{
int p1, p2;
object[i]._oDoorFlag = TRUE;
if (ot == 1) {
p1 = dPiece[x][y];
p2 = dPiece[x][y - 1];
object[i]._oVar1 = dPiece[x][y];
object[i]._oVar2 = dPiece[x][y - 1];
} else {
p1 = dPiece[x][y];
p2 = dPiece[x - 1][y];
object[i]._oVar1 = dPiece[x][y];
object[i]._oVar2 = dPiece[x - 1][y];
}
object[i]._oVar1 = p1;
object[i]._oVar2 = p2;
object[i]._oVar4 = 0;
}

Loading…
Cancel
Save