mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-07 15:31:11 +00:00
- remove XSECTOR::reference.
This commit is contained in:
parent
4ed1ee77c7
commit
a0ef54cb54
2 changed files with 1 additions and 8 deletions
|
@ -272,7 +272,6 @@ unsigned short dbInsertXSector(int nSector)
|
||||||
I_Error("Out of free XSectors");
|
I_Error("Out of free XSectors");
|
||||||
}
|
}
|
||||||
memset(&xsector[nXSector], 0, sizeof(XSECTOR));
|
memset(&xsector[nXSector], 0, sizeof(XSECTOR));
|
||||||
xsector[nXSector].reference = nSector;
|
|
||||||
sector[nSector].extra = nXSector;
|
sector[nSector].extra = nXSector;
|
||||||
return nXSector;
|
return nXSector;
|
||||||
}
|
}
|
||||||
|
@ -280,10 +279,6 @@ unsigned short dbInsertXSector(int nSector)
|
||||||
void dbInit(void)
|
void dbInit(void)
|
||||||
{
|
{
|
||||||
XWallsUsed = XSectorsUsed = 1; // 0 is not usable because it's the default for 'extra' and some code actually uses it to clobber the contents in here. :(
|
XWallsUsed = XSectorsUsed = 1; // 0 is not usable because it's the default for 'extra' and some code actually uses it to clobber the contents in here. :(
|
||||||
for (int i = 1; i < kMaxXSectors; i++)
|
|
||||||
{
|
|
||||||
xsector[i].reference = -1;
|
|
||||||
}
|
|
||||||
initspritelists();
|
initspritelists();
|
||||||
for (int i = 0; i < kMaxSprites; i++)
|
for (int i = 0; i < kMaxSprites; i++)
|
||||||
{
|
{
|
||||||
|
@ -689,8 +684,7 @@ void dbLoadMap(const char *pPath, int *pX, int *pY, int *pZ, short *pAngle, int
|
||||||
pXSector->bobFloor = bitReader.readUnsigned(1);
|
pXSector->bobFloor = bitReader.readUnsigned(1);
|
||||||
pXSector->bobCeiling = bitReader.readUnsigned(1);
|
pXSector->bobCeiling = bitReader.readUnsigned(1);
|
||||||
pXSector->bobRotate = bitReader.readUnsigned(1);
|
pXSector->bobRotate = bitReader.readUnsigned(1);
|
||||||
xsector[sector[i].extra].reference = i;
|
pXSector->busy = IntToFixed(pXSector->state);
|
||||||
xsector[sector[i].extra].busy = IntToFixed(xsector[sector[i].extra].state);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -186,7 +186,6 @@ struct XSECTOR {
|
||||||
int32_t onFloorZ;
|
int32_t onFloorZ;
|
||||||
uint32_t windVel; // Wind vel (changed from 10 bit to use higher velocity values)
|
uint32_t windVel; // Wind vel (changed from 10 bit to use higher velocity values)
|
||||||
|
|
||||||
uint16_t reference;
|
|
||||||
uint16_t data; // Data
|
uint16_t data; // Data
|
||||||
uint16_t txID; // TX ID
|
uint16_t txID; // TX ID
|
||||||
uint16_t rxID; // RX ID
|
uint16_t rxID; // RX ID
|
||||||
|
|
Loading…
Reference in a new issue