mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-31 01:11:15 +00:00
- all SectUsers replaced, except for the maintenance code of the array.
This commit is contained in:
parent
bd43f49c29
commit
56a1836e68
7 changed files with 38 additions and 39 deletions
|
@ -180,13 +180,11 @@ void DoRotatorMatch(PLAYERp pp, short match, bool manual)
|
|||
if (firstVator == nullptr)
|
||||
firstVator = actor;
|
||||
|
||||
sectnum = fsp->sectnum;
|
||||
auto sect = fsp->sector();
|
||||
|
||||
if (pp && SectUser[sectnum].Data() && SectUser[sectnum]->stag == SECT_LOCK_DOOR && SectUser[sectnum]->number)
|
||||
if (pp && sect->hasU() && sect->u()->stag == SECT_LOCK_DOOR && sect->u()->number)
|
||||
{
|
||||
short key_num;
|
||||
|
||||
key_num = SectUser[sectnum]->number;
|
||||
int key_num = sect->u()->number;
|
||||
|
||||
{
|
||||
PutStringInfo(pp, quoteMgr.GetQuote(QUOTE_DOORMSG + key_num - 1));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue