removed useless engine hooks
replaces some div's to mul's
This commit is contained in:
parent
f3331aea13
commit
65818243ec
8 changed files with 12 additions and 47 deletions
|
|
@ -1023,7 +1023,7 @@ private:
|
|||
inline bool IsOnFloor (void) { return (pev->flags & (FL_ONGROUND | FL_PARTIALGROUND)) != 0; }
|
||||
inline bool IsInWater (void) { return pev->waterlevel >= 2; }
|
||||
|
||||
inline float GetWalkSpeed (void) { return static_cast <float> ((static_cast <int> (pev->maxspeed) / 2) + (static_cast <int> (pev->maxspeed) / 50)) - 18; }
|
||||
inline float GetWalkSpeed (void) { return static_cast <float> ((static_cast <int> (pev->maxspeed) * 0.5) + (static_cast <int> (pev->maxspeed) / 50)) - 18; }
|
||||
|
||||
bool ItemIsVisible (const Vector &dest, char *itemName);
|
||||
bool LastEnemyShootable (void);
|
||||
|
|
|
|||
|
|
@ -2322,7 +2322,7 @@ private:
|
|||
int delta = 4;
|
||||
|
||||
if (m_allocatedSize > 64)
|
||||
delta = m_allocatedSize / 2;
|
||||
delta = m_allocatedSize * 0.5;
|
||||
else if (m_allocatedSize > 8)
|
||||
delta = 16;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue