Code cleanup and ond more extremely small speedup

This commit is contained in:
Jeija
2012-08-13 08:50:10 +02:00
parent 736f40bfb4
commit c8c2fd32da
4 changed files with 36 additions and 15 deletions

View File

@ -87,8 +87,8 @@ for zmy=0, 1 do
if zpy == 1 then table.insert(nodebox, box_zpy) end
if xmy == 1 then table.insert(nodebox, box_xmy) end
if zmy == 1 then table.insert(nodebox, box_zmy) end
nobump = xp+zp+xm+zm
if adjx and adjz and (nobump > 2) then
if adjx and adjz and (xp + zp + xm + zm > 2) then
table.insert(nodebox, box_bump1)
table.insert(nodebox, box_bump2)
tiles_off = {