changeset 19:33ffeb90b311

Fixed closing of main window when entering combat.
author madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09
date Thu, 25 Apr 2013 01:30:16 +0000
parents cccc7661a2e6
children 937be4664323
files CyborgMMO7.lua
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/CyborgMMO7.lua	Thu Apr 25 01:30:11 2013 +0000
+++ b/CyborgMMO7.lua	Thu Apr 25 01:30:16 2013 +0000
@@ -110,8 +110,7 @@
 		CyborgMMO_VarsLoaded = true
 	elseif event == "PLAYER_ENTERING_WORLD" then
 		CyborgMMO_EnteredWorld = true
-	elseif event == "PLAYER_ENTER_COMBAT" then
-		CyborgMMO_DPrint("PLAYER_ENTER_COMBAT")
+	elseif event == "PLAYER_REGEN_DISABLED" then
 		CyborgMMO_Close()
 	else
 		CyborgMMO_DPrint("Event is "..tostring(event))
@@ -189,7 +188,7 @@
 function CyborgMMO_Loaded()
 	CyborgMMO_MainPage:RegisterEvent("VARIABLES_LOADED")
 	CyborgMMO_MainPage:RegisterEvent("PLAYER_ENTERING_WORLD")
-	CyborgMMO_MainPage:RegisterEvent("PLAYER_ENTER_COMBAT")
+	CyborgMMO_MainPage:RegisterEvent("PLAYER_REGEN_DISABLED")
 end
 
 function CyborgMMO_Close()