mirror of
https://github.com/unknownworlds/NS.git
synced 2025-01-18 23:11:49 +00:00
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:
parent
09f986ccea
commit
c72f601ff0
3 changed files with 5 additions and 5 deletions
Binary file not shown.
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -812,7 +812,7 @@ private:
|
|||
|
||||
int mScore;
|
||||
int mSavedCombatFrags;
|
||||
|
||||
float mLastUpdateTime;
|
||||
#ifdef USE_UPP
|
||||
bool mAuthorized;
|
||||
int mAuthMask;
|
||||
|
|
Loading…
Reference in a new issue