aboutsummaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-04-03 19:50:54 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-04-03 19:50:54 +0300
commite0f7bd4d57bf0c9b497c4d0bb73f7bd4d5cc0643 (patch)
tree756f4451eac9a1446a4b1acd8f5cda3f625eabb3 /src/client.cpp
parent01c2b003e1efb839ad246eb939af7fa8336b9ad5 (diff)
downloadhax-minetest-server-e0f7bd4d57bf0c9b497c4d0bb73f7bd4d5cc0643.tar.gz
hax-minetest-server-e0f7bd4d57bf0c9b497c4d0bb73f7bd4d5cc0643.zip
Modified block mesh generation to have clearer input and output. Instead of being a messy object oriented cludge, it now is a messy cludge with separate parameters.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 4cae9d02e..357cbe368 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1238,6 +1238,35 @@ bool Client::AsyncProcessPacket()
block->deSerialize(istr, ser_version);
sector->insertBlock(block);
//block->setChangedFlag();
+
+ //DEBUG
+ /*NodeMod mod;
+ mod.type = NODEMOD_CHANGECONTENT;
+ mod.param = CONTENT_MESE;
+ block->setTempMod(v3s16(8,10,8), mod);
+ block->setTempMod(v3s16(8,9,8), mod);
+ block->setTempMod(v3s16(8,8,8), mod);
+ block->setTempMod(v3s16(8,7,8), mod);
+ block->setTempMod(v3s16(8,6,8), mod);*/
+
+ /*
+ Add some coulds
+ Well, this is a dumb way to do it, they should just
+ be drawn as separate objects.
+ */
+ /*if(p.Y == 3)
+ {
+ NodeMod mod;
+ mod.type = NODEMOD_CHANGECONTENT;
+ mod.param = CONTENT_CLOUD;
+ v3s16 p2;
+ p2.Y = 8;
+ for(p2.X=3; p2.X<=13; p2.X++)
+ for(p2.Z=3; p2.Z<=13; p2.Z++)
+ {
+ block->setTempMod(p2, mod);
+ }
+ }*/
}
} //envlock