From 814346d3a3ac64c63dacd40c69421ab4557a44d8 Mon Sep 17 00:00:00 2001 From: JailDoctor Date: Thu, 27 Oct 2022 19:17:48 +0200 Subject: [PATCH] - Switches implemented --- switches.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/switches.lua b/switches.lua index ebd0936..b17d157 100644 --- a/switches.lua +++ b/switches.lua @@ -10,7 +10,7 @@ switches={ [76]={[19]={77, 50,38,26}, [22]={57, 53,41}}, [80]={[18]={36, 56,44}}, - [39]={[27]={27, 62,63}} + [39]={[27]={39, 62,63}} } --switches[11]={[21]={11, 57,45}} --switches[11][21]={11, 57,45} @@ -32,7 +32,7 @@ function switches.update() switches.wait=switches.wait+1 - if switches.wait==6 then + if switches.wait>=6 then switches.wait=0 mapa_set_tile_by_index(switches.current_list[1]-1,switches.current_list[switches.current_index]+1,256) switches.current_index=switches.current_index+1