mirror of
https://github.com/unknownworlds/NS.git
synced 2024-11-25 05:51:12 +00:00
Ported performance changes from SVN revision 222, 3.0.5 performance branch.
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@240 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
parent
241a3b0282
commit
f5cdfe00ad
5 changed files with 6 additions and 6 deletions
|
@ -803,7 +803,7 @@ void AvHMP3Audio::ClearSoundNameList()
|
|||
sSoundList.clear();
|
||||
}
|
||||
|
||||
StringList AvHMP3Audio::GetSoundNameList()
|
||||
const StringList& AvHMP3Audio::GetSoundNameList()
|
||||
{
|
||||
return sSoundList;
|
||||
}
|
||||
|
|
|
@ -259,7 +259,7 @@ public:
|
|||
void EXPORT SpecialSoundUse( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value );
|
||||
|
||||
static void ClearSoundNameList();
|
||||
static StringList GetSoundNameList();
|
||||
static const StringList& GetSoundNameList();
|
||||
|
||||
private:
|
||||
static StringList sSoundList;
|
||||
|
|
|
@ -1032,7 +1032,7 @@ bool AvHGamerules::GetCanJoinTeamInFuture(AvHPlayer* inPlayer, AvHTeamNumber inT
|
|||
return theCanJoinTeam;
|
||||
}
|
||||
|
||||
AvHBaseInfoLocationListType AvHGamerules::GetInfoLocations() const
|
||||
const AvHBaseInfoLocationListType& AvHGamerules::GetInfoLocations() const
|
||||
{
|
||||
return mInfoLocations;
|
||||
}
|
||||
|
|
|
@ -213,7 +213,7 @@ public:
|
|||
bool GetIsTesting(void) const;
|
||||
bool GetIsValidFutureTeam(AvHPlayer inPlayer, int inTeamNumber) const;
|
||||
bool GetCanJoinTeamInFuture(AvHPlayer* inPlayer, AvHTeamNumber theTeamNumber, string& outString) const;
|
||||
AvHBaseInfoLocationListType GetInfoLocations() const;
|
||||
const AvHBaseInfoLocationListType& GetInfoLocations() const;
|
||||
int GetMaxWeight(void) const;
|
||||
const char* GetSpawnEntityName(AvHPlayer* inPlayer) const;
|
||||
Vector GetSpawnAreaCenter(AvHTeamNumber inTeamNumber) const;
|
||||
|
|
|
@ -9308,7 +9308,7 @@ void AvHPlayer::UpdateParticleTemplates()
|
|||
void AvHPlayer::UpdateInfoLocations()
|
||||
{
|
||||
// Get map location list
|
||||
AvHBaseInfoLocationListType theInfoLocations = GetGameRules()->GetInfoLocations();
|
||||
const AvHBaseInfoLocationListType& theInfoLocations = GetGameRules()->GetInfoLocations();
|
||||
|
||||
// Compare with ours, send one down each tick (assumes that previous ones sent don't change)
|
||||
int theNumClientInfoLocations = this->mClientInfoLocations.size();
|
||||
|
@ -9459,7 +9459,7 @@ void AvHPlayer::UpdateSoundNames()
|
|||
if(this->pev != NULL ) // Not fully connected yet
|
||||
{
|
||||
// Send list of special sounds
|
||||
StringList theSoundNameList = AvHMP3Audio::GetSoundNameList();
|
||||
const StringList& theSoundNameList = AvHMP3Audio::GetSoundNameList();
|
||||
int theNumberOfSounds = theSoundNameList.size();
|
||||
int theNumberOfSoundsOnClient = this->mClientSoundNames.size();
|
||||
|
||||
|
|
Loading…
Reference in a new issue