- fixed the accuracy for cell markers

This commit is contained in:
Mark Vejvoda 2012-06-22 05:40:23 +00:00
parent acc2a5f9c9
commit d10493edc0
1 changed files with 2 additions and 2 deletions

View File

@ -2225,7 +2225,7 @@ void Game::mouseDownLeft(int x, int y) {
if(originalIsMarkCellEnabled == true && isMarkCellEnabled == true) {
Vec2i targetPos;
Vec2i screenPos(x,y);
Vec2i screenPos(x,y-60);
Renderer &renderer= Renderer::getInstance();
renderer.computePosition(screenPos, targetPos);
Vec2i surfaceCellPos = map->toSurfCoords(targetPos);
@ -2246,7 +2246,7 @@ void Game::mouseDownLeft(int x, int y) {
if(originalIsUnMarkCellEnabled == true && isUnMarkCellEnabled == true) {
Vec2i targetPos;
Vec2i screenPos(x,y);
Vec2i screenPos(x,y-35);
Renderer &renderer= Renderer::getInstance();
renderer.computePosition(screenPos, targetPos);
Vec2i surfaceCellPos = map->toSurfCoords(targetPos);