Ignore:
Timestamp:
May 16, 2011, 2:37:43 AM (11 years ago)
Author:
Sam Hocevar
Message:

game: convert a few View members to vec2i.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/objects.cpp

    r657 r674  
    382382
    383383  vec2i pos1 = the_game->GameToMouse(vec2i(x1, y1), v);
    384   if (pos1.y >= v->cy1)
    385   {
    386     int32_t draw_to = y1 - (pos1.y - v->cy1), tmp = x;
     384  if (pos1.y >= v->m_aa.y)
     385  {
     386    int32_t draw_to = y1 - (pos1.y - v->m_aa.y), tmp = x;
    387387    current_level->foreground_intersect(x, y1, tmp, draw_to);
    388388    // calculate pos2.y
    389389    vec2i pos2 = the_game->GameToMouse(vec2i(x1, draw_to), v);
    390390
    391     pos2.y = Max(v->cy1, pos2.y);
    392     pos1.y = Min(v->cy2, pos1.y);
     391    pos2.y = Max(v->m_aa.y, pos2.y);
     392    pos1.y = Min(v->m_bb.y, pos1.y);
    393393    TransImage *p = picture();
    394394
Note: See TracChangeset for help on using the changeset viewer.