forked from Mirrorlandia_minetest/minetest
small fix to transformLiquids
This commit is contained in:
parent
296748d32e
commit
dc4ac0b96f
11
src/map.cpp
11
src/map.cpp
@ -1564,6 +1564,11 @@ void Map::transformLiquids(core::map<v3s16, MapBlock*> & modified_blocks)
|
|||||||
|
|
||||||
while(m_transforming_liquid.size() != 0)
|
while(m_transforming_liquid.size() != 0)
|
||||||
{
|
{
|
||||||
|
// This should be done here so that it is done when continue is used
|
||||||
|
if(loopcount >= initial_size * 3)
|
||||||
|
break;
|
||||||
|
loopcount++;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Get a queued transforming liquid node
|
Get a queued transforming liquid node
|
||||||
*/
|
*/
|
||||||
@ -1779,12 +1784,6 @@ void Map::transformLiquids(core::map<v3s16, MapBlock*> & modified_blocks)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
loopcount++;
|
|
||||||
//if(loopcount >= 100000)
|
|
||||||
if(loopcount >= initial_size * 10) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
//dstream<<"Map::transformLiquids(): loopcount="<<loopcount<<std::endl;
|
//dstream<<"Map::transformLiquids(): loopcount="<<loopcount<<std::endl;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user