mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-30 20:51:02 +00:00
- Exhumed: Use player pointer in AIPlayer::Draw()
.
This commit is contained in:
parent
d270099aa7
commit
4e1b269c59
1 changed files with 5 additions and 3 deletions
|
@ -565,11 +565,13 @@ static void pickupMessage(int no)
|
|||
|
||||
void AIPlayer::Draw(RunListEvent* ev)
|
||||
{
|
||||
int nPlayer = RunData[ev->nRun].nObjIndex;
|
||||
const int nPlayer = RunData[ev->nRun].nObjIndex;
|
||||
assert(nPlayer >= 0 && nPlayer < kMaxPlayers);
|
||||
int nAction = PlayerList[nPlayer].nAction;
|
||||
|
||||
seq_PlotSequence(ev->nParam, SeqOffsets[PlayerList[nPlayer].nSeq] + PlayerSeq[nAction].a, PlayerList[nPlayer].nSeqSize, PlayerSeq[nAction].b);
|
||||
const auto pPlayer = &PlayerList[nPlayer];
|
||||
const auto nAction = pPlayer->nAction;
|
||||
|
||||
seq_PlotSequence(ev->nParam, SeqOffsets[pPlayer->nSeq] + PlayerSeq[nAction].a, pPlayer->nSeqSize, PlayerSeq[nAction].b);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue