From 216cc7f1e9960b913551a3ae2773b2532a13ba50 Mon Sep 17 00:00:00 2001 From: Warmist Date: Tue, 19 Mar 2013 21:49:35 +0200 Subject: [PATCH] Carving of tracks added. --- scripts/gui/advfort.lua | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/scripts/gui/advfort.lua b/scripts/gui/advfort.lua index 2ed4b9502..f386037ff 100644 --- a/scripts/gui/advfort.lua +++ b/scripts/gui/advfort.lua @@ -186,7 +186,21 @@ function SetPatientRef(args) end end end - +function SetCarveDir(args) + local job=args.job + local pos=args.pos + local from_pos=args.from_pos + local dirs={up=18,down=19,right=20,left=21} + if pos.x>from_pos.x then + job.item_category[dirs.right]=true + elseif pos.xfrom_pos.y then + job.item_category[dirs.up]=true + elseif pos.y