mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 04:20:42 +00:00
- added a sector() method to spritetype.
For making game code working with sectors a bit easier to read.
This commit is contained in:
parent
9e4afd543c
commit
ba2d4acc18
2 changed files with 8 additions and 0 deletions
|
@ -153,6 +153,12 @@ extern walltype wall[MAXWALLS];
|
|||
extern spritetype sprite[MAXSPRITES];
|
||||
EXTERN int leveltimer;
|
||||
|
||||
inline sectortype* spritetype::sector() const
|
||||
{
|
||||
return &::sector[sectnum];
|
||||
}
|
||||
|
||||
|
||||
extern sectortype sectorbackup[MAXSECTORS];
|
||||
extern walltype wallbackup[MAXWALLS];
|
||||
|
||||
|
|
|
@ -362,6 +362,8 @@ struct spritetype
|
|||
{
|
||||
return interpolatedangle(oang, ang, smoothratio, 16);
|
||||
}
|
||||
|
||||
sectortype* sector() const;
|
||||
};
|
||||
|
||||
using tspritetype = spritetype;
|
||||
|
|
Loading…
Reference in a new issue