mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-21 19:11:06 +00:00
- Blood: Remove some unused templated functions in common_game.h
.
This commit is contained in:
parent
13639a09b7
commit
4db3e91f24
1 changed files with 0 additions and 21 deletions
|
@ -560,27 +560,6 @@ inline int QRandom2(int a1)
|
||||||
return MulScale(qrand(), a1, 14) - a1;
|
return MulScale(qrand(), a1, 14) - a1;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T>
|
|
||||||
inline void SetBitString(T* pArray, int nIndex)
|
|
||||||
{
|
|
||||||
static_assert(sizeof(T) == 1, "Bit array element too large");
|
|
||||||
pArray[nIndex >> 3] |= 1 << (nIndex & 7);
|
|
||||||
}
|
|
||||||
|
|
||||||
template<class T>
|
|
||||||
inline void ClearBitString(T* pArray, int nIndex)
|
|
||||||
{
|
|
||||||
static_assert(sizeof(T) == 1, "Bit array element too large");
|
|
||||||
pArray[nIndex >> 3] &= ~(1 << (nIndex & 7));
|
|
||||||
}
|
|
||||||
|
|
||||||
template<class T>
|
|
||||||
inline bool TestBitString(T* pArray, int nIndex)
|
|
||||||
{
|
|
||||||
static_assert(sizeof(T) == 1, "Bit array element too large");
|
|
||||||
return !!(pArray[nIndex >> 3] & (1 << (nIndex & 7)));
|
|
||||||
}
|
|
||||||
|
|
||||||
// This is to override the namepace prioritization without altering the actual calls.
|
// This is to override the namepace prioritization without altering the actual calls.
|
||||||
inline int scale(int a, int b, int c)
|
inline int scale(int a, int b, int c)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue