o Fixed the '0 %damage' bug

git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@229 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
puzl 2005-07-03 18:01:32 +00:00
parent 09f986ccea
commit c72f601ff0
3 changed files with 5 additions and 5 deletions

Binary file not shown.

View file

@ -3555,7 +3555,7 @@ void AvHPlayer::Init()
AvHGamerules* theGameRules = GetGameRules();
mServerVariableList.clear();
mLastUpdateTime=-1;
for (i = 0; i < theGameRules->GetNumServerVariables(); ++i)
{
mServerVariableList.push_back(ServerVariable());
@ -6969,8 +6969,8 @@ void AvHPlayer::InternalCommonThink()
void AvHPlayer::PropagateServerVariables()
{
static float theLastUpdateTime = -1.0f;
if ( gpGlobals->time > (theLastUpdateTime + 0.5f ) ) {
if ( gpGlobals->time > (mLastUpdateTime + 0.5f ) ) {
for (int i = 0; i < (signed)mServerVariableList.size(); ++i)
{
@ -6995,7 +6995,7 @@ void AvHPlayer::PropagateServerVariables()
}
}
theLastUpdateTime = gpGlobals->time;
mLastUpdateTime = gpGlobals->time;
}
}

View file

@ -812,7 +812,7 @@ private:
int mScore;
int mSavedCombatFrags;
float mLastUpdateTime;
#ifdef USE_UPP
bool mAuthorized;
int mAuthMask;