Fix CS:GO zones breaking

This commit is contained in:
shavitush 2016-09-19 19:12:23 +03:00
parent 6c3bff058d
commit 3b646981ef
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
// Absolutely DON'T delete subkeys from this file.
//
// visible defaults to 1
// other values default to 255
"Zones"
{
// zone sprites

View File

@ -351,7 +351,7 @@ public bool LoadZonesConfig()
return false;
}
Dynamic dSprites = dZones.GetDynamic((gEV_Type == Engine_CSS)? "CS:S":"CS:GO");
Dynamic dSprites = dZones.GetDynamicByIndex((gEV_Type == Engine_CSS)? 0:1);
dSprites.GetString("beam", gS_Sprites[sBeamSprite], PLATFORM_MAX_PATH);
dSprites.GetString("halo", gS_Sprites[sHaloSprite], PLATFORM_MAX_PATH);
@ -370,7 +370,7 @@ public bool LoadZonesConfig()
}
}
Dynamic dColors = dZones.GetDynamic("Colors");
Dynamic dColors = dZones.GetDynamicByIndex(2);
int iCount = dColors.MemberCount;
for(int i = 0; i < iCount; i++)