aboutsummaryrefslogtreecommitdiff
path: root/advtrains
diff options
context:
space:
mode:
authorBlockhead <jbis1337@hotmail.com>2021-11-16 21:33:51 +1100
committerorwell96 <orwell@bleipb.de>2023-04-12 21:52:34 +0200
commit793210f7c216302d4970ebe52c2975c542f8f193 (patch)
treecaadc3c109bf64d5364aeddc75ec487293e6f0a1 /advtrains
parent4f241b06b1cb803099eff4bbc981fca6eb839340 (diff)
downloadadvtrains-793210f7c216302d4970ebe52c2975c542f8f193.tar.gz
advtrains-793210f7c216302d4970ebe52c2975c542f8f193.tar.bz2
advtrains-793210f7c216302d4970ebe52c2975c542f8f193.zip
Make selection boxes of track nodes larger
This reduces the difficulty of having to point at the centre of the correct track node, and hopefully does not prevent placing tracks in more than a couple of cases. Three-way turnouts on an angle may be an exception but they may be worth it. User feedback is needed.
Diffstat (limited to 'advtrains')
-rw-r--r--advtrains/tracks.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/tracks.lua b/advtrains/tracks.lua
index 261818e..c415143 100644
--- a/advtrains/tracks.lua
+++ b/advtrains/tracks.lua
@@ -471,7 +471,7 @@ function advtrains.register_tracks(tracktype, def, preset)
walkable = false,
selection_box = {
type = "fixed",
- fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
+ fixed = {-1/2-1/16, -1/2, -1/2, 1/2+1/16, -1/2+2/16, 1/2},
},
mesh = def.shared_model or (def.models_prefix.."_"..img_suffix..def.models_suffix),