forked from mtcontrib/vector_extras
fix a mistake at vector.line and add gitignore
This commit is contained in:
parent
11d6679bbc
commit
9be98c66ab
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
## Generic ignorable patterns and files
|
||||
*~
|
||||
.*.swp
|
||||
debug.txt
|
|
@ -1,2 +1,2 @@
|
|||
TODO:
|
||||
— maybe change vector.chunkcorner
|
||||
— add things to this list
|
||||
|
|
3
init.lua
3
init.lua
|
@ -130,8 +130,7 @@ end
|
|||
function vector.line(pos, dir, range)
|
||||
--assert_vector(pos)
|
||||
if not range then --dir = pos2
|
||||
dir = vector.direction(pos, dir)
|
||||
range = vector.distance(pos, dir)
|
||||
dir, range = vector.direction(pos, dir), vector.distance(pos, dir)
|
||||
end
|
||||
return return_line(pos, dir, range)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user