diff options
author | sapier <Sapier at GMX dot net> | 2013-07-31 17:29:25 +0200 |
---|---|---|
committer | PilzAdam <pilzadam@minetest.net> | 2013-08-13 23:48:47 +0200 |
commit | fc571ad46df8f3dcc04745bc55d9ca6e1e82ed87 (patch) | |
tree | ddd55fdce5db910f3229ee183aac19f15933bfd4 /src/object_properties.cpp | |
parent | d718b0b34eda84744778fa12a01d5be5f03753d3 (diff) | |
download | minetest-fc571ad46df8f3dcc04745bc55d9ca6e1e82ed87.tar.gz minetest-fc571ad46df8f3dcc04745bc55d9ca6e1e82ed87.tar.bz2 minetest-fc571ad46df8f3dcc04745bc55d9ca6e1e82ed87.zip |
Add support for entities to automatic face movement direction
Diffstat (limited to 'src/object_properties.cpp')
-rw-r--r-- | src/object_properties.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/object_properties.cpp b/src/object_properties.cpp index 1602f03f2..7fad25cce 100644 --- a/src/object_properties.cpp +++ b/src/object_properties.cpp @@ -40,7 +40,8 @@ ObjectProperties::ObjectProperties(): is_visible(true), makes_footstep_sound(false), automatic_rotate(0), - stepheight(0) + stepheight(0), + automatic_face_movement_dir(false) { textures.push_back("unknown_object.png"); colors.push_back(video::SColor(255,255,255,255)); @@ -102,6 +103,7 @@ void ObjectProperties::serialize(std::ostream &os) const } writeU8(os, collideWithObjects); writeF1000(os,stepheight); + writeU8(os, automatic_face_movement_dir); // Add stuff only at the bottom. // Never remove anything, because we don't want new versions of this } @@ -136,6 +138,7 @@ void ObjectProperties::deSerialize(std::istream &is) } collideWithObjects = readU8(is); stepheight = readF1000(is); + automatic_face_movement_dir = readU8(is); }catch(SerializationError &e){} } else |