Changeset 816


Ignore:
Timestamp:
Aug 11, 2011, 2:35:26 PM (8 years ago)
Author:
sam
Message:

monsterz: minor code enhancement.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/monsterz/interface.cpp

    r792 r816  
    9595    WorldEntity::TickDraw(deltams);
    9696
    97     vec2i mouse = Input::GetMousePos();
     97    vec3i mouse(Input::GetMousePos());
    9898
    9999    if (Platform::GetMouseCount() && mouse.x >= 0 && mouse.y >= 0)
    100100    {
    101         vec3i m = vec3i(mouse) + vec3i(-6, 6 - 48, 30);
    102         Scene::GetDefault()->AddTile(data->tiles, 22, m, 0);
     101        mouse += vec3i(-6, 6 - 48, 30);
     102        Scene::GetDefault()->AddTile(data->tiles, 22, mouse, 0);
    103103    }
    104104}
Note: See TracChangeset for help on using the changeset viewer.