diff options
author | Thanasis Antoniou | 2019-05-03 20:12:18 +0300 |
---|---|---|
committer | Thanasis Antoniou | 2019-05-04 17:25:34 +0300 |
commit | a281d68d7b6796583d0b3ce7fce1746c3c2321a3 (patch) | |
tree | c215d9f5dc5eab1437e4f8dc8d61beb4f73cb1c0 /engines | |
parent | b033005bcb41059ff0b209773c551703a1df3161 (diff) | |
download | scummvm-rg350-a281d68d7b6796583d0b3ce7fce1746c3c2321a3.tar.gz scummvm-rg350-a281d68d7b6796583d0b3ce7fce1746c3c2321a3.tar.bz2 scummvm-rg350-a281d68d7b6796583d0b3ce7fce1746c3c2321a3.zip |
BLADERUNNER: fix legend for walkboxes in debugger
Diffstat (limited to 'engines')
-rw-r--r-- | engines/bladerunner/debugger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/bladerunner/debugger.cpp b/engines/bladerunner/debugger.cpp index aa09469830..5dde9d44f1 100644 --- a/engines/bladerunner/debugger.cpp +++ b/engines/bladerunner/debugger.cpp @@ -1952,7 +1952,7 @@ void Debugger::drawWalkboxes() { Vector3 start = _vm->_view->calculateScreenPosition(walkbox->vertices[j]); Vector3 end = _vm->_view->calculateScreenPosition(walkbox->vertices[(j + 1) % walkbox->vertexCount]); _vm->_surfaceFront.drawLine(start.x, start.y, end.x, end.y, _vm->_surfaceFront.format.RGBToColor(255, 255, 0)); - Vector3 pos = _vm->_view->calculateScreenPosition(0.5 * (start + end)); + Vector3 pos = _vm->_view->calculateScreenPosition(0.5 * (walkbox->vertices[j] + walkbox->vertices[(j + 1) % walkbox->vertexCount])); _vm->_mainFont->drawColor(walkbox->name, _vm->_surfaceFront, pos.x, pos.y, _vm->_surfaceFront.format.RGBToColor(255, 255, 0)); } } |