diff Constants.lua @ 484:679e2846ff88

Replaced 'GetCvar("portal")' with the library LibRealmInfo in order to get accurate server and region information (needed for world quest data recording).
author MMOSimca <mmosimca@gmail.com>
date Tue, 06 Sep 2016 09:31:06 -0400
parents cf08b2748711
children 5e5ddb69f845
line wrap: on
line diff
--- a/Constants.lua	Fri Sep 02 00:25:45 2016 -0400
+++ b/Constants.lua	Tue Sep 06 09:31:06 2016 -0400
@@ -807,9 +807,6 @@
 -- Fundamental Constants.
 -----------------------------------------------------------------------
 private.wow_version, private.build_num, _, private.interface_num = _G.GetBuildInfo()
-private.region = GetCVar("portal"):sub(0,2):upper()
--- PTR/Beta return "public-test", but they are properly called "XX"
-if private.region == "PU" then private.region = "XX" end
 
 private.UNIT_TYPES = {
     PLAYER = "Player",