mirror of
https://github.com/HybridDog/vector_extras.git
synced 2024-11-26 09:23:47 +01:00
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:
|
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)
|
function vector.line(pos, dir, range)
|
||||||
--assert_vector(pos)
|
--assert_vector(pos)
|
||||||
if not range then --dir = pos2
|
if not range then --dir = pos2
|
||||||
dir = vector.direction(pos, dir)
|
dir, range = vector.direction(pos, dir), vector.distance(pos, dir)
|
||||||
range = vector.distance(pos, dir)
|
|
||||||
end
|
end
|
||||||
return return_line(pos, dir, range)
|
return return_line(pos, dir, range)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user