From 2bf64dc970d4157be1507b20ae637f048e19e5ec Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 26 Mar 2014 01:56:27 +0200 Subject: [PATCH] Adjust terrain pick geometry so it's possible to pick tracks on top of it --- source/libr2c2/terrain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libr2c2/terrain.cpp b/source/libr2c2/terrain.cpp index c89d0f8..8e0c60e 100644 --- a/source/libr2c2/terrain.cpp +++ b/source/libr2c2/terrain.cpp @@ -63,7 +63,7 @@ void Terrain::set_size(unsigned w, unsigned h) delete shape; float ts = type.get_tile_size(); - Vector dim(width*ts, height*ts, ts); + Vector dim(width*ts, height*ts, ts/10.0f); shape = new Geometry::TransformedShape( Geometry::Box(dim), Transform::translation(dim/2.0f)); -- 2.43.0