Browse Source

WallTrapLocOk bin exact (#755)

pull/78/head
qndel 7 years ago committed by Anders Jenbo
parent
commit
79a6678570
  1. 8
      Source/objects.cpp
  2. 2
      Source/objects.h

8
Source/objects.cpp

@ -809,10 +809,12 @@ void __fastcall AddL3Objs(int x1, int y1, int x2, int y2)
}
}
BOOLEAN __fastcall WallTrapLocOk(int xp, int yp)
BOOL __fastcall WallTrapLocOk(int xp, int yp)
{
return (~dFlags[xp][yp] & DFLAG_POPULATED) >> 3;
}
if (dFlags[xp][yp] & DFLAG_POPULATED)
return FALSE;
return TRUE;
}
void __cdecl AddL2Torches()
{

2
Source/objects.h

@ -28,7 +28,7 @@ void __cdecl InitRndBarrels();
void __fastcall AddL1Objs(int x1, int y1, int x2, int y2);
void __fastcall AddL2Objs(int x1, int y1, int x2, int y2);
void __fastcall AddL3Objs(int x1, int y1, int x2, int y2);
BOOLEAN __fastcall WallTrapLocOk(int xp, int yp);
BOOL __fastcall WallTrapLocOk(int xp, int yp);
void __cdecl AddL2Torches();
BOOL __fastcall TorchLocOK(int xp, int yp);
void __cdecl AddObjTraps();

Loading…
Cancel
Save