mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
-some overlooked User’s.
This commit is contained in:
parent
82b4385ede
commit
3ed3029345
2 changed files with 4 additions and 3 deletions
|
@ -139,7 +139,7 @@ void AutoPickInventory(PLAYERp pp)
|
|||
|
||||
void UseInventoryMedkit(PLAYERp pp)
|
||||
{
|
||||
USERp u = User[pp->PlayerSprite].Data();
|
||||
USERp u = pp->Actor()->u();
|
||||
short diff;
|
||||
short inv = INVENTORY_MEDKIT;
|
||||
short amt;
|
||||
|
|
|
@ -53,6 +53,7 @@ BEGIN_SW_NS
|
|||
|
||||
void SectorLightShade(DSWActor* actor, short intensity)
|
||||
{
|
||||
auto u = actor->hasU()? actor->u() : nullptr;
|
||||
auto sp = &actor->s();
|
||||
short w, startwall, endwall;
|
||||
int8_t* wall_shade;
|
||||
|
@ -79,8 +80,8 @@ void SectorLightShade(DSWActor* actor, short intensity)
|
|||
// change wall
|
||||
if (!TEST_BOOL4(sp))
|
||||
{
|
||||
ASSERT(User[sp - sprite].Data() && User[sp - sprite]->WallShade.Data());
|
||||
wall_shade = User[sp - sprite]->WallShade.Data();
|
||||
ASSERT(u && u->WallShade.Data());
|
||||
wall_shade = u->WallShade.Data();
|
||||
|
||||
startwall = sector[sp->sectnum].wallptr;
|
||||
endwall = startwall + sector[sp->sectnum].wallnum - 1;
|
||||
|
|
Loading…
Reference in a new issue