Fix on_rightclick() being called directly after placing node

fixes https://github.com/minetest/minetest_game/issues/537
master
BlockMen 2015-10-23 23:38:21 +02:00
parent 380e1504eb
commit 127b9aed09
1 changed files with 4 additions and 5 deletions

View File

@ -3673,7 +3673,6 @@ void Game::handlePointingAtNode(GameRunData *runData,
} else { } else {
soundmaker->m_player_rightpunch_sound = soundmaker->m_player_rightpunch_sound =
SimpleSoundSpec(); SimpleSoundSpec();
}
if (playeritem_def.node_placement_prediction == "" || if (playeritem_def.node_placement_prediction == "" ||
nodedef_manager->get(map.getNodeNoEx(nodepos)).rightclickable) nodedef_manager->get(map.getNodeNoEx(nodepos)).rightclickable)
@ -3681,6 +3680,7 @@ void Game::handlePointingAtNode(GameRunData *runData,
} }
} }
} }
}
void Game::handlePointingAtObject(GameRunData *runData, void Game::handlePointingAtObject(GameRunData *runData,
@ -4422,4 +4422,3 @@ void the_game(bool *kill,
errorstream << "ModError: " << error_message << std::endl; errorstream << "ModError: " << error_message << std::endl;
} }
} }