aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2016-08-21 18:11:50 -0700
committer1029chris <1029chris@gmail.com>2016-08-21 18:11:50 -0700
commitc9241f093181fed49116cd3665b7b61a77cda128 (patch)
tree16440d1df0b5d0ec995cc9dd3cf8f749011718d4
parent601bd8bcf47337955657b6522f714526bd2e4422 (diff)
other popups all close when virus 2 appears
-rw-r--r--virus2.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/virus2.lua b/virus2.lua
index 228515d..56e7db6 100644
--- a/virus2.lua
+++ b/virus2.lua
@@ -156,6 +156,9 @@ function drawPopups()
if v2.pop.p[i].m == true then
music.tension2:play()
scene = 3
+ for i=1,#v2.pop.p do
+ v2.pop.p[i].exit = true
+ end
end
elseif mouseClick(v2.pop.p[i].x+8, v2.pop.p[i].y+31, v2.pop.p[i].w-16, v2.pop.p[i].h-39) == true
and v2.pop.p[i].exit == false and v2.pop.hov == i and v2.pop.p[i].dup == true then