Lua: Fix drawing lines in certain angles
This commit is contained in:
parent
45e7712234
commit
a77781f9fb
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ nodraw1:
|
|||
}
|
||||
} else {
|
||||
//Y-major line.
|
||||
if(_x2 < _x1) {
|
||||
if(_y2 < _y1) {
|
||||
//Swap points so that y1 < y2.
|
||||
std::swap(_x1, _x2);
|
||||
std::swap(_y1, _y2);
|
||||
|
|
Loading…
Add table
Reference in a new issue