1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-06-28 04:40:22 +02:00

Remove unused and clean up missused variable-value assignments.

* Unused variables
* Unused values (assigned to variables, but overwritten before use)
* Defining already defined variables instead of reassigning to them.
This commit is contained in:
Tim
2016-06-26 13:34:14 +02:00
committed by paramat
parent d7a7456007
commit 4473627de0
12 changed files with 22 additions and 31 deletions

View File

@ -167,7 +167,7 @@ function boat.on_step(self, dtime)
local p = self.object:getpos()
p.y = p.y - 0.5
local new_velo = {x = 0, y = 0, z = 0}
local new_velo
local new_acce = {x = 0, y = 0, z = 0}
if not is_water(p) then
local nodedef = minetest.registered_nodes[minetest.get_node(p).name]