mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-31 01:11:15 +00:00
- sector object sprite list
This commit is contained in:
parent
2a7d0e6fe3
commit
74fce3bf58
6 changed files with 76 additions and 79 deletions
|
@ -5027,9 +5027,9 @@ void DoPlayerBeginOperate(PLAYERp pp)
|
|||
DoPlayerOperateMatch(pp, true);
|
||||
|
||||
// look for gun before trying to using it
|
||||
for (i = 0; sop->sp_num[i] != -1; i++)
|
||||
for (i = 0; sop->so_actors[i] != nullptr; i++)
|
||||
{
|
||||
if (sprite[sop->sp_num[i]].statnum == STAT_SO_SHOOT_POINT)
|
||||
if (sop->so_actors[i]->s().statnum == STAT_SO_SHOOT_POINT)
|
||||
{
|
||||
SET(sop->flags, SOBJ_HAS_WEAPON);
|
||||
break;
|
||||
|
@ -5113,9 +5113,9 @@ void DoPlayerBeginRemoteOperate(PLAYERp pp, SECTOR_OBJECTp sop)
|
|||
DoPlayerOperateMatch(pp, true);
|
||||
|
||||
// look for gun before trying to using it
|
||||
for (i = 0; sop->sp_num[i] != -1; i++)
|
||||
for (i = 0; sop->so_actors[i] != nullptr; i++)
|
||||
{
|
||||
if (sprite[sop->sp_num[i]].statnum == STAT_SO_SHOOT_POINT)
|
||||
if (sop->so_actors[i]->s().statnum == STAT_SO_SHOOT_POINT)
|
||||
{
|
||||
SET(sop->flags, SOBJ_HAS_WEAPON);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue