From 77a17383acc3e97fb67608e146166c8002e00335 Mon Sep 17 00:00:00 2001 From: 1029chris <1029chris@gmail.com> Date: Fri, 13 May 2016 14:36:04 -0700 Subject: Fix for chat messages coming after virus fights --- system.lua | 2 +- virus1.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/system.lua b/system.lua index 29a3b97..7aecdd8 100644 --- a/system.lua +++ b/system.lua @@ -6,7 +6,7 @@ function drawLayer(id) end function updateSystem(dt) timeNoti(dt) - if time >= msgstime[msg.c] and msgssent < msg.c then + if time >= msgstime[msg.c] and msgssent < msg.c and v1.yes == false and v1.complete == false then sendMessage(1, msgs[msg.c]) msgssent = msgssent + 1 end diff --git a/virus1.lua b/virus1.lua index 64075c7..c9d1207 100644 --- a/virus1.lua +++ b/virus1.lua @@ -568,6 +568,7 @@ function drawVirusFight1() antivirus.status = "Virus Defeated" win[4].update = true scene = 1 + time = 0 elseif v1.c.chat.msgs == 53 then virus1Lose = virus1Lose + 1 scene = 666 -- cgit