Browse Source

Invert the mouse coordinate handling logic.

legacy
Sam Hocevar sam 14 years ago
parent
commit
cb0c02c7d0
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/game.cpp
  2. +1
    -1
      src/layer.cpp

+ 1
- 1
src/game.cpp View File

@@ -64,7 +64,7 @@ void Game::TickRender(float delta_time)

GetScene();

data->map->Render(data->scene, data->mousex, data->mousey, 0);
data->map->Render(data->scene, -data->mousex, -data->mousey, 0);
data->scene->Render();

delete data->scene;


+ 1
- 1
src/layer.cpp View File

@@ -40,7 +40,7 @@ void Layer::Render(Scene *scene, int x, int y, int z)
for (int j = 0; j < height; j++)
for (int i = 0; i < width; i++)
if (data[j * width + i])
scene->AddTile(data[j * width + i], i * 32 - x, j * 32 - y,
scene->AddTile(data[j * width + i], x + i * 32, y + j * 32,
altitude + z, orientation);
}



Loading…
Cancel
Save