aboutsummaryrefslogtreecommitdiff
path: root/advtrains/settingtypes.txt
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2021-06-30 23:46:00 +0200
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2021-06-30 23:46:00 +0200
commit30f4e342fdc6bd74c72bcbb649d4e1ccf974bcab (patch)
tree2567f11897f954dd060a67072b0f26ceb09a405b /advtrains/settingtypes.txt
parent9b0ec771d70c4bdc97a08f480a1a9c31b1ee8ca1 (diff)
downloadadvtrains-30f4e342fdc6bd74c72bcbb649d4e1ccf974bcab.tar.gz
advtrains-30f4e342fdc6bd74c72bcbb649d4e1ccf974bcab.tar.bz2
advtrains-30f4e342fdc6bd74c72bcbb649d4e1ccf974bcab.zip
Make the collision mode configurable
If the advtrains_forgiving_collision setting is set to true, then the train only collides with nodes that do not have normal drawtype. Otherwise the old behavior is restored. This change is being made because there were users and mods relying on the old behavior, such as the railroad_paraphernalia mod's track blocker.
Diffstat (limited to 'advtrains/settingtypes.txt')
-rw-r--r--advtrains/settingtypes.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/advtrains/settingtypes.txt b/advtrains/settingtypes.txt
index 6acff80..2b627cb 100644
--- a/advtrains/settingtypes.txt
+++ b/advtrains/settingtypes.txt
@@ -56,3 +56,8 @@ advtrains_dtime_limit (DTime Limit for slow-down) float 0.2 0 5
# Time interval in seconds in which advtrains stores its save data to disk
# Nevertheless, advtrains saves all data when shutting down the server.
advtrains_save_interval (Save Interval) int 60 20 3600
+
+# Enable forgiving collision mode
+# If enabled, trains only collide with nodes with "normal" drawtype.
+advtrains_forgiving_collision (Forgiving Collision mode) bool false
+