summaryrefslogtreecommitdiff
path: root/src/collision.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-21 14:36:21 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:50 +0200
commit290e9219208fd904807bded7ccdb7109a4f92bc6 (patch)
tree1bad6c56620e007c4177284e42386e4b0cea8b8f /src/collision.h
parent94feb62b087d61d0c211645970a36e6752d1c732 (diff)
downloadminetest-290e9219208fd904807bded7ccdb7109a4f92bc6.tar.gz
minetest-290e9219208fd904807bded7ccdb7109a4f92bc6.tar.bz2
minetest-290e9219208fd904807bded7ccdb7109a4f92bc6.zip
Relatively snappy object-ground collision detection
Diffstat (limited to 'src/collision.h')
-rw-r--r--src/collision.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/collision.h b/src/collision.h
index 3354ea09a..e823a08fe 100644
--- a/src/collision.h
+++ b/src/collision.h
@@ -28,9 +28,11 @@ class IGameDef;
struct collisionMoveResult
{
bool touching_ground;
+ bool collides;
collisionMoveResult():
- touching_ground(false)
+ touching_ground(false),
+ collides(false)
{}
};