From 3ae0b1703181e5e2189c03021351f917821a75d6 Mon Sep 17 00:00:00 2001 From: lethosor Date: Sat, 7 Nov 2015 15:24:57 -0500 Subject: [PATCH] tidlers: Use next_item() --- scripts/tidlers.lua | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/scripts/tidlers.lua b/scripts/tidlers.lua index 5d450f631..7df509139 100644 --- a/scripts/tidlers.lua +++ b/scripts/tidlers.lua @@ -6,12 +6,5 @@ tidlers Toggle between all possible positions where the idlers count can be placed. =end]] --- see also the enum: df.d_init_idlers -if df.global.d_init.idlers == 0 then - df.global.d_init.idlers = 1 -elseif df.global.d_init.idlers == 1 then - df.global.d_init.idlers = -1 -else - df.global.d_init.idlers = 0 -end +df.global.d_init.idlers = df.d_init_idlers:next_item(df.global.d_init.idlers) print('Toggled the display of idlers.')