add life support system for creating air in space

This commit is contained in:
darkrose 2014-10-23 06:23:45 +10:00
parent 6edf399e66
commit cb692e6f73
5 changed files with 5 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 425 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 350 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 B

View File

@ -2675,10 +2675,10 @@ void ServerEnvironment::step(float dtime)
{
MapNode testnode;
v3s16 testpos;
for (u16 x=-5; x<5; x++)
for (u16 y=-5; y<5; x++)
for (u16 z=-5; z<5; x++) {
testpos= p+v3s16(x,y,z);
for (s16 x=-5; x<5; x++)
for (s16 y=-5; y<5; y++)
for (s16 z=-5; z<5; z++) {
testpos = p+v3s16(x,y,z);
testnode = m_map->getNodeNoEx(testpos);
if (testnode.getContent() != CONTENT_VACUUM)
continue;

View File

@ -3015,7 +3015,7 @@ void ServerMap::loadMapMeta()
m_seed = params.getU64("seed");
m_type = MGT_DEFAULT;
{
if (params.exists("type")) {
std::string type = params.get("type");
if (type == "flat") {
m_type = MGT_FLAT;