fixed shooting at guy behind shield
thank goes to KWo
This commit is contained in:
parent
2b005a6a98
commit
c12437689c
3 changed files with 12 additions and 28 deletions
|
|
@ -277,12 +277,12 @@ public:
|
|||
|
||||
inline int Long (int low, int high)
|
||||
{
|
||||
return static_cast <int> (Random () * (static_cast <double> (high)-static_cast <double> (low)+1.0) / m_divider + static_cast <double> (low));
|
||||
return static_cast <int> (Random () * (static_cast <double> (high) - static_cast <double> (low) + 1.0) / m_divider + static_cast <double> (low));
|
||||
}
|
||||
|
||||
inline float Float (float low, float high)
|
||||
{
|
||||
return static_cast <float> (Random () * (static_cast <double> (high)-static_cast <double> (low)) / (m_divider - 1) + static_cast <double> (low));
|
||||
return static_cast <float> (Random () * (static_cast <double> (high) - static_cast <double> (low)) / (m_divider - 1) + static_cast <double> (low));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue