projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
777ac58
)
Don't predict placement of nodes if they would replace a non buildable_to node
author
ShadowNinja
<noreply@gmail.com>
Sat, 20 Apr 2013 21:01:02 +0000
(17:01 -0400)
committer
PilzAdam
<pilzadam@minetest.net>
Fri, 3 May 2013 15:03:25 +0000
(17:03 +0200)
src/game.cpp
patch
|
blob
|
history
diff --git
a/src/game.cpp
b/src/game.cpp
index a5011b6ffa14aa854d570ede3fb1c7550f71de42..3fbfad801f48e1bdc71d62779a80ec48f2b46bc4 100644
(file)
--- a/
src/game.cpp
+++ b/
src/game.cpp
@@
-808,6
+808,8
@@
void nodePlacementPrediction(Client &client,
MapNode n_under = map.getNode(nodepos);
if(nodedef->get(n_under).buildable_to)
p = nodepos;
+ else if (!nodedef->get(map.getNode(p)).buildable_to)
+ return;
}catch(InvalidPositionException &e){}
// Find id of predicted node
content_t id;