mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- moved EStateUseFlags to a more fitting header and deleted unused RAD2BAM inlines
This commit is contained in:
parent
b5c1237f93
commit
0c9b652583
2 changed files with 10 additions and 19 deletions
|
@ -9,6 +9,16 @@ class PPrototype;
|
|||
struct ZCC_TreeNode;
|
||||
class PContainerType;
|
||||
|
||||
// This is needed in common code, despite being Doom specific.
|
||||
enum EStateUseFlags
|
||||
{
|
||||
SUF_ACTOR = 1,
|
||||
SUF_OVERLAY = 2,
|
||||
SUF_WEAPON = 4,
|
||||
SUF_ITEM = 8,
|
||||
};
|
||||
|
||||
|
||||
// Symbol information -------------------------------------------------------
|
||||
|
||||
class PTypeBase
|
||||
|
|
|
@ -96,25 +96,6 @@ inline double RAD2DEG(double rad)
|
|||
return rad * (180. / M_PI);
|
||||
}
|
||||
|
||||
inline angle_t RAD2BAM(float rad)
|
||||
{
|
||||
return angle_t(xs_RoundToUInt(rad * float(0x80000000u / M_PI)));
|
||||
}
|
||||
|
||||
inline angle_t RAD2BAM(double rad)
|
||||
{
|
||||
return angle_t(xs_RoundToUInt(rad * (0x80000000u / M_PI)));
|
||||
}
|
||||
|
||||
|
||||
// This is needed in common code, despite being Doom specific.
|
||||
enum EStateUseFlags
|
||||
{
|
||||
SUF_ACTOR = 1,
|
||||
SUF_OVERLAY = 2,
|
||||
SUF_WEAPON = 4,
|
||||
SUF_ITEM = 8,
|
||||
};
|
||||
|
||||
using std::min;
|
||||
using std::max;
|
||||
|
|
Loading…
Reference in a new issue