diff options
Diffstat (limited to 'cRender.cpp')
-rw-r--r-- | cRender.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cRender.cpp b/cRender.cpp index a01418e..41908e1 100644 --- a/cRender.cpp +++ b/cRender.cpp @@ -88,6 +88,12 @@ int cRender::drawPoint(char _c, sPos _pos, bool _overrideCollision, WORD _color) int cRender::drawLine(char _c, sPos _pos1, sPos _pos2, bool _overrideCollision, WORD _color) { + if(_pos1.x > _pos2.x) + { + //Shit WILL go wrong + return drawLine(_c, _pos2, _pos1, _overrideCollision, _color); + } + if (_pos1.x == _pos2.x) { //Horizontal line for (int i = _pos1.y; i <= _pos2.y; i++) { |