From 33a8f0f570a2f3597ec273a4049d00acfb483828 Mon Sep 17 00:00:00 2001
From: orwell96 <orwell@bleipb.de>
Date: Tue, 9 Jan 2018 18:30:29 +0100
Subject: Move driving_ctrl_access property to seat group there's now a more
 strict check for the train_operator privilege Also added custom reasons on
 getting on a train.

---
 advtrains_train_steam/init.lua | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

(limited to 'advtrains_train_steam/init.lua')

diff --git a/advtrains_train_steam/init.lua b/advtrains_train_steam/init.lua
index 461aa91..2afbe16 100755
--- a/advtrains_train_steam/init.lua
+++ b/advtrains_train_steam/init.lua
@@ -16,20 +16,19 @@ advtrains.register_wagon("newlocomotive", {
 			name=S("Driver Stand (left)"),
 			attach_offset={x=-5, y=10, z=-10},
 			view_offset={x=0, y=6, z=0},
-			driving_ctrl_access=true,
 			group = "dstand",
 		},
 		{
 			name=S("Driver Stand (right)"),
 			attach_offset={x=5, y=10, z=-10},
 			view_offset={x=0, y=6, z=0},
-			driving_ctrl_access=true,
 			group = "dstand",
 		},
 	},
 	seat_groups = {
 		dstand={
 			name = "Driver Stand",
+			driving_ctrl_access=true,
 			access_to = {},
 		},
 	},
@@ -86,20 +85,19 @@ advtrains.register_wagon("detailed_steam_engine", {
 			name=S("Driver Stand (left)"),
 			attach_offset={x=-5, y=10, z=-10},
 			view_offset={x=9, y=-2, z=-6},
-			driving_ctrl_access=true,
 			group = "dstand",
 		},
 		{
 			name=S("Driver Stand (right)"),
 			attach_offset={x=5, y=10, z=-10},
 			view_offset={x=0, y=6, z=0},
-			driving_ctrl_access=true,
 			group = "dstand",
 		},
 	},
 	seat_groups = {
 		dstand={
 			name = "Driver Stand",
+			driving_ctrl_access=true,
 			access_to = {},
 		},
 	},
-- 
cgit v1.2.3