diff options
author | Perttu Ahola <celeron55@gmail.com> | 2010-12-19 16:51:45 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2010-12-19 16:51:45 +0200 |
commit | 0ca9423b8b2cf7bd1435fb09eba7a9f50d444864 (patch) | |
tree | ea49a7bae71b4e89f51797356fd0d34c35497e74 /src/mapblockobject.cpp | |
parent | 240499dc2c766c9d022e6df71e770a116a2c95de (diff) | |
download | minetest-0ca9423b8b2cf7bd1435fb09eba7a9f50d444864.tar.gz minetest-0ca9423b8b2cf7bd1435fb09eba7a9f50d444864.tar.bz2 minetest-0ca9423b8b2cf7bd1435fb09eba7a9f50d444864.zip |
day/night working client side
Diffstat (limited to 'src/mapblockobject.cpp')
-rw-r--r-- | src/mapblockobject.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/mapblockobject.cpp b/src/mapblockobject.cpp index cd12feb0c..8b52b9447 100644 --- a/src/mapblockobject.cpp +++ b/src/mapblockobject.cpp @@ -339,17 +339,7 @@ void MapBlockObjectList::update(std::istream &is, u8 version, " id="<<id <<std::endl;*/ - if(type_id == MAPBLOCKOBJECT_TYPE_TEST) - { - // The constructors of objects shouldn't need - // any more parameters than this. - obj = new TestObject(m_block, id, pos); - } - else if(type_id == MAPBLOCKOBJECT_TYPE_TEST2) - { - obj = new Test2Object(m_block, id, pos); - } - else if(type_id == MAPBLOCKOBJECT_TYPE_SIGN) + if(type_id == MAPBLOCKOBJECT_TYPE_SIGN) { obj = new SignObject(m_block, id, pos); } |