GetVersion Question
I've come across some parts of my code that function in Sphere 1.5 and do not function in miniSphere.
I'm trying to get the code to function in both. I thought that maybe if I added in the GetVersion it would make the code functional again. However, since I added in the GetVersion part var CurrMap is returning as undefined in both Sphere & miniSphere.
Perhaps this is not the way GetVersion functions?
var GCM = GetCurrentMap();
var GCM_S = GCM.split("/");
var GCM_SA;
var CurrMap;
if (GetVersion() < 2.0)
{
GCM_SA = GCM_S[1];
}else{
GCM_SA = GCM_S[3];
}
CurrMap = GCM_SA.slice(0, -4);