Ignore:
Timestamp:
Oct 29, 2011, 5:37:53 PM (9 years ago)
Author:
sam
Message:

core: disallow casting eg. a vec3 into a vec2. Use the xy() getter instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/input.cpp

    r866 r1035  
    131131        if (data->entities[n] == top)
    132132        {
    133             data->entities[n]->mousepos = (ivec2)((ivec3)coord - top->bbox[0]);
     133            data->entities[n]->mousepos = coord - top->bbox[0].xy();
    134134            if (top != data->lastfocus)
    135135                data->entities[n]->pressed = data->buttons;
Note: See TracChangeset for help on using the changeset viewer.