mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-31 01:11:15 +00:00
- don't use s() in other getters.
This commit is contained in:
parent
395a269feb
commit
0ebd7532b8
1 changed files with 4 additions and 4 deletions
|
@ -41,7 +41,7 @@ public:
|
||||||
|
|
||||||
bool exists() const
|
bool exists() const
|
||||||
{
|
{
|
||||||
return (unsigned)s().statnum < MAXSTATUS;
|
return (unsigned)spr.statnum < MAXSTATUS;
|
||||||
}
|
}
|
||||||
|
|
||||||
const spritetype& s() const
|
const spritetype& s() const
|
||||||
|
@ -57,17 +57,17 @@ public:
|
||||||
int GetIndex() const
|
int GetIndex() const
|
||||||
{
|
{
|
||||||
// This is only identical with the sprite index for items spawned at map start.
|
// This is only identical with the sprite index for items spawned at map start.
|
||||||
return s().time;
|
return spr.time;
|
||||||
}
|
}
|
||||||
|
|
||||||
sectortype* sector() const
|
sectortype* sector() const
|
||||||
{
|
{
|
||||||
return s().sector();
|
return spr.sector();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool insector() const
|
bool insector() const
|
||||||
{
|
{
|
||||||
return s().insector();
|
return spr.insector();
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue