mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
Minor code optimizations
This commit is contained in:
parent
aacf5fd804
commit
9909b5f580
@ -2147,9 +2147,9 @@ public Action WorldDecal(const char[] te_name, const Players[], int numClients,
|
|||||||
return Plugin_Continue;
|
return Plugin_Continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int GetParticleEffectName(int index, char[] sEffectName, int maxlen)
|
int GetParticleEffectName(int index, char[] sEffectName, int maxlen)
|
||||||
{
|
{
|
||||||
int table = INVALID_STRING_TABLE;
|
static int table = INVALID_STRING_TABLE;
|
||||||
|
|
||||||
if(table == INVALID_STRING_TABLE)
|
if(table == INVALID_STRING_TABLE)
|
||||||
{
|
{
|
||||||
@ -2159,9 +2159,9 @@ static int GetParticleEffectName(int index, char[] sEffectName, int maxlen)
|
|||||||
return ReadStringTable(table, index, sEffectName, maxlen);
|
return ReadStringTable(table, index, sEffectName, maxlen);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int GetEffectName(int index, char[] sEffectName, int maxlen)
|
int GetEffectName(int index, char[] sEffectName, int maxlen)
|
||||||
{
|
{
|
||||||
int table = INVALID_STRING_TABLE;
|
static int table = INVALID_STRING_TABLE;
|
||||||
|
|
||||||
if(table == INVALID_STRING_TABLE)
|
if(table == INVALID_STRING_TABLE)
|
||||||
{
|
{
|
||||||
@ -2171,9 +2171,9 @@ static int GetEffectName(int index, char[] sEffectName, int maxlen)
|
|||||||
return ReadStringTable(table, index, sEffectName, maxlen);
|
return ReadStringTable(table, index, sEffectName, maxlen);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int GetDecalName(int index, char[] sDecalName, int maxlen)
|
int GetDecalName(int index, char[] sDecalName, int maxlen)
|
||||||
{
|
{
|
||||||
int table = INVALID_STRING_TABLE;
|
static int table = INVALID_STRING_TABLE;
|
||||||
|
|
||||||
if(table == INVALID_STRING_TABLE)
|
if(table == INVALID_STRING_TABLE)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user