Changeset 137


Ignore:
Timestamp:
Aug 19, 2010, 2:58:27 AM (10 years ago)
Author:
sam
Message:

Invert the mouse coordinate handling logic.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/game.cpp

    r131 r137  
    6565    GetScene();
    6666
    67     data->map->Render(data->scene, data->mousex, data->mousey, 0);
     67    data->map->Render(data->scene, -data->mousex, -data->mousey, 0);
    6868    data->scene->Render();
    6969
  • trunk/src/layer.cpp

    r133 r137  
    4141        for (int i = 0; i < width; i++)
    4242            if (data[j * width + i])
    43                 scene->AddTile(data[j * width + i], i * 32 - x, j * 32 - y,
     43                scene->AddTile(data[j * width + i], x + i * 32, y + j * 32,
    4444                               altitude + z, orientation);
    4545}
Note: See TracChangeset for help on using the changeset viewer.