mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
Fix CS:GO zones breaking
This commit is contained in:
parent
6c3bff058d
commit
3b646981ef
@ -1,3 +1,7 @@
|
|||||||
|
// Absolutely DON'T delete subkeys from this file.
|
||||||
|
//
|
||||||
|
// visible defaults to 1
|
||||||
|
// other values default to 255
|
||||||
"Zones"
|
"Zones"
|
||||||
{
|
{
|
||||||
// zone sprites
|
// zone sprites
|
||||||
|
|||||||
@ -351,7 +351,7 @@ public bool LoadZonesConfig()
|
|||||||
return false;
|
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("beam", gS_Sprites[sBeamSprite], PLATFORM_MAX_PATH);
|
||||||
dSprites.GetString("halo", gS_Sprites[sHaloSprite], 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;
|
int iCount = dColors.MemberCount;
|
||||||
|
|
||||||
for(int i = 0; i < iCount; i++)
|
for(int i = 0; i < iCount; i++)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user