aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2016-08-21 18:26:43 -0700
committer1029chris <1029chris@gmail.com>2016-08-21 18:26:43 -0700
commit1e55cc4060d151807f9acbac89ab8b158bb1c120 (patch)
treefeeb6c978e3d9d3a48fda39541b15f91cfd086d2
parentc9241f093181fed49116cd3665b7b61a77cda128 (diff)
Start menu closes when clicked out of in virus 2 fight
-rw-r--r--virus2.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/virus2.lua b/virus2.lua
index 56e7db6..5b0595e 100644
--- a/virus2.lua
+++ b/virus2.lua
@@ -26,6 +26,9 @@ function drawVirusFight2()
if start.o == true then
drawMenu()
end
+ if start.o == true and sys.mouse.p.p == true and sys.mouse.p.x > 255 or sys.mouse.p.y < sys.h-380 then
+ start.o = false
+ end
drawStart()
if v2.c.chat.msgs == 1 or v2.c.chat.msgs == 6 then
v2.c.xd = sys.w/2