Statsx: Replace len hardcoded contents by charsmax
This commit is contained in:
parent
0237153ddd
commit
91dfec4ef7
|
@ -1584,7 +1584,7 @@ endround_stats()
|
||||||
public eventTeamScore()
|
public eventTeamScore()
|
||||||
{
|
{
|
||||||
new sTeamID[1 + 1], iTeamScore
|
new sTeamID[1 + 1], iTeamScore
|
||||||
read_data(1, sTeamID, 1)
|
read_data(1, sTeamID, charsmax(sTeamID))
|
||||||
iTeamScore = read_data(2)
|
iTeamScore = read_data(2)
|
||||||
g_izTeamEventScore[(sTeamID[0] == 'C') ? 1 : 0] = iTeamScore
|
g_izTeamEventScore[(sTeamID[0] == 'C') ? 1 : 0] = iTeamScore
|
||||||
|
|
||||||
|
@ -1637,7 +1637,7 @@ public end_game_stats()
|
||||||
public eventSpecMode(id)
|
public eventSpecMode(id)
|
||||||
{
|
{
|
||||||
new sData[12]
|
new sData[12]
|
||||||
read_data(2, sData, 11)
|
read_data(2, sData, charsmax(sData))
|
||||||
g_izSpecMode[id] = (sData[10] == '2')
|
g_izSpecMode[id] = (sData[10] == '2')
|
||||||
|
|
||||||
return PLUGIN_CONTINUE
|
return PLUGIN_CONTINUE
|
||||||
|
|
Loading…
Reference in New Issue
Block a user