projects
/
zefram
/
minetest
/
technic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80b5f39
)
clean code
author
Maciej Kasatkin
<mk@realbadangel.pl>
Sat, 15 Sep 2012 19:49:16 +0000
(21:49 +0200)
committer
Maciej Kasatkin
<mk@realbadangel.pl>
Sat, 15 Sep 2012 19:49:16 +0000
(21:49 +0200)
node_breaker.lua
patch
|
blob
|
history
diff --git
a/node_breaker.lua
b/node_breaker.lua
index 4f110ee7aa57740018ceb61375256c16c7348511..aab29e1a4ced1c2e64c40fd5d7b348699998506e 100644
(file)
--- a/
node_breaker.lua
+++ b/
node_breaker.lua
@@
-46,7
+46,7
@@
function break_node (pos,n_param)
pos2.z=pos.z
--param2 3=x+ 1=x- 2=z+ 0=z-
- if n_param==3 then p
rint ("sru") p
os2.x=pos2.x+1 pos1.x=pos1.x-1 end
+ if n_param==3 then pos2.x=pos2.x+1 pos1.x=pos1.x-1 end
if n_param==2 then pos2.z=pos2.z+1 pos1.z=pos1.z-1 end
if n_param==1 then pos2.x=pos2.x-1 pos1.x=pos1.x+1 end
if n_param==0 then pos2.z=pos2.z-1 pos1.x=pos1.z+1 end