mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-19 07:31:03 +00:00
- getSourceBusy
This commit is contained in:
parent
4cfc1577e2
commit
9cad3196ed
1 changed files with 4 additions and 6 deletions
|
@ -172,15 +172,13 @@ unsigned int GetSourceBusy(EVENT a1)
|
|||
{
|
||||
case 6:
|
||||
{
|
||||
int nXIndex = sector[nIndex].extra;
|
||||
assert(nXIndex > 0 && nXIndex < kMaxXSectors);
|
||||
return xsector[nXIndex].busy;
|
||||
auto sect = §or[nIndex];
|
||||
return sect->hasX()? sect->xs().busy : 0;
|
||||
}
|
||||
case 0:
|
||||
{
|
||||
int nXIndex = wall[nIndex].extra;
|
||||
assert(nXIndex > 0 && nXIndex < kMaxXWalls);
|
||||
return xwall[nXIndex].busy;
|
||||
auto wal = &wall[nIndex];
|
||||
return wal->hasX()? wal->xw().busy : 0;
|
||||
}
|
||||
case 3:
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue