Don't change bush branch dir unless =5

5 is a special direction to designate the center node.  If you actually
try to orient the nodebox that way, it gets turned on it's side which we
don't want.
master
Glenn Engelbart 2013-10-12 10:19:53 -05:00
parent 355eac6b36
commit fdeaf7427e
1 changed files with 0 additions and 2 deletions

View File

@ -148,11 +148,9 @@ abstract_bushes.grow_bush_node = function(pos,dir, leaf_type)
-- MM: I'm not sure if it's slower now than before...
if dir ~= 5 and leaf_type == 1 then
bush_branch_type = 2
dir = 1
end
if dir ~= 5 and leaf_type == 2 then
bush_branch_type = 4
dir = 1
end
if dir == 5 and leaf_type == 1 then
bush_branch_type = 1