MCPcopy Create free account
hub / github.com/diasurgical/devilution / SyncL1Doors

Function SyncL1Doors

Source/objects.cpp:4138–4166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4136}
4137
4138void SyncL1Doors(int i)
4139{
4140 int x, y;
4141
4142 if (object[i]._oVar4 == 0) {
4143 object[i]._oMissFlag = FALSE;
4144 return;
4145 }
4146
4147 x = object[i]._ox;
4148 y = object[i]._oy;
4149 object[i]._oMissFlag = TRUE;
4150 object[i]._oSelFlag = 2;
4151 if (object[i]._otype == OBJ_L1LDOOR) {
4152 if (object[i]._oVar1 == 214)
4153 ObjSetMicro(x, y, 408);
4154 else
4155 ObjSetMicro(x, y, 393);
4156 dArch[x][y] = 7;
4157 objects_set_door_piece(x - 1, y);
4158 y--;
4159 } else {
4160 ObjSetMicro(x, y, 395);
4161 dArch[x][y] = 8;
4162 objects_set_door_piece(x, y - 1);
4163 x--;
4164 }
4165 DoorSet(i, x, y);
4166}
4167
4168void SyncCrux(int i)
4169{

Callers 1

SyncObjectAnimFunction · 0.85

Calls 3

ObjSetMicroFunction · 0.85
objects_set_door_pieceFunction · 0.85
DoorSetFunction · 0.85

Tested by

no test coverage detected