Skip to content

Various minor issues #12

@axcore

Description

@axcore

A few minor code issues, none of which affect the user:

mobkit.get_box_displace_cols(), line 397-398

	local zsgn = sign(vec.z)
	local xsgn = sign(xoff)

The local is not necessary here, as the variables were declared above (or, rename these variables.)

mobkit.hq_aqua_attack()

"local tyaw" is defined twice, lines 781 and 811
"local yaw" is defined twice, lines 793 and 813

aqua_radar_dumb()

"local ok,h" appears twice, lines 693 and 702

mobkit.physics()

On line 688, "colinfo" is used without being declared, therefore it's global. Adding local colinfo = self.colinfo above will fix the problem.

mobkit.get_next_waypoint_fast()

Line 169, "liq" has not been declared (but "height" and "pos2" have)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions