mirror of
https://github.com/DrBeef/Raze.git
synced 2025-02-20 18:52:43 +00:00
- use sector iterator for cheatUnlock
This commit is contained in:
parent
a7634c4cad
commit
931c71a78c
1 changed files with 4 additions and 4 deletions
|
@ -101,15 +101,15 @@ static const char *cheatGod(int myconnectindex, int state)
|
|||
static const char* cheatUnlock()
|
||||
{
|
||||
if (isShareware()) return nullptr;
|
||||
for (int i = numsectors - 1; i >= 0; i--) //Unlock
|
||||
for (auto§ : sectors())
|
||||
{
|
||||
int j = sector[i].lotag;
|
||||
int j = sect.lotag;
|
||||
if (j == -1 || j == 32767) continue;
|
||||
if ((j & 0x7fff) > 2)
|
||||
{
|
||||
if (j & (0xffff - 16384))
|
||||
sector[i].lotag &= (0xffff - 16384);
|
||||
operatesectors(i, ps[myconnectindex].GetActor());
|
||||
sect.lotag &= (0xffff - 16384);
|
||||
operatesectors(sectnum(§), ps[myconnectindex].GetActor());
|
||||
}
|
||||
}
|
||||
fi.operateforcefields(ps[myconnectindex].GetActor(), -1);
|
||||
|
|
Loading…
Reference in a new issue