1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Tweak rollback and liquids

This commit is contained in:
Perttu Ahola 2012-07-27 15:46:51 +03:00
parent 7ef0a13250
commit 3e754382af
4 changed files with 16 additions and 16 deletions

View file

@ -1636,7 +1636,7 @@ void Map::transformLiquids(core::map<v3s16, MapBlock*> & modified_blocks)
while(m_transforming_liquid.size() != 0)
{
// This should be done here so that it is done when continue is used
if(loopcount >= initial_size || loopcount >= 1000)
if(loopcount >= initial_size || loopcount >= 10000)
break;
loopcount++;
@ -1828,8 +1828,7 @@ void Map::transformLiquids(core::map<v3s16, MapBlock*> & modified_blocks)
// Find out whether there is a suspect for this action
std::string suspect;
if(m_gamedef->rollback()){
// Max. 5 seconds ago, shortcut at 98 points
suspect = m_gamedef->rollback()->getSuspect(p0, 5, 95);
suspect = m_gamedef->rollback()->getSuspect(p0, 83, 1);
}
if(!suspect.empty()){