Lua: Fix drawing lines in certain angles

This commit is contained in:
Ilari Liusvaara 2013-04-20 06:21:03 +03:00
parent 45e7712234
commit a77781f9fb

View file

@ -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);