removed useless engine hooks

replaces some div's to mul's
This commit is contained in:
jeefo 2015-06-22 21:32:29 +03:00
commit 65818243ec
8 changed files with 12 additions and 47 deletions

View file

@ -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);

View file

@ -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;