mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-09 11:28:26 +00:00
Fix names breaking bot names (thanks sergio™)
This commit is contained in:
parent
4c50514bed
commit
5dafe701b2
@ -236,7 +236,7 @@ public void OnEntityCreated(int entity, const char[] classname)
|
|||||||
|
|
||||||
public Action HookTriggers(int entity, int other)
|
public Action HookTriggers(int entity, int other)
|
||||||
{
|
{
|
||||||
if(IsValidClient(other) && IsFakeClient(other))
|
if(other >= 1 && other <= MaxClients && IsFakeClient(other))
|
||||||
{
|
{
|
||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
}
|
}
|
||||||
@ -590,8 +590,8 @@ public void UpdateReplayInfo(int client, BhopStyle style, float time)
|
|||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
char[] sWRName = new char[MAX_NAME_LENGTH];
|
char[] sWRName = new char[16];
|
||||||
Shavit_GetWRName(style, sWRName, MAX_NAME_LENGTH);
|
Shavit_GetWRName(style, sWRName, 16);
|
||||||
|
|
||||||
FormatEx(sName, MAX_NAME_LENGTH, "[%s] %s - %s", gS_StyleStrings[style][sShortName], sWRName, sTime);
|
FormatEx(sName, MAX_NAME_LENGTH, "[%s] %s - %s", gS_StyleStrings[style][sShortName], sWRName, sTime);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user