Ignore:
Timestamp:
May 15, 2011, 6:22:21 AM (11 years ago)
Author:
Sam Hocevar
Message:

game: convert a few integer pairs to vec2i variables.

File:
1 edited

Legend:

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

    r657 r658  
    11251125int Game::in_area(Event &ev, int x1, int y1, int x2, int y2)
    11261126{
    1127   return (last_demo_mx >= x1 && last_demo_mx <= x2 &&
    1128       last_demo_my >= y1 && last_demo_my <= y2);
     1127  return (last_demo_mpos.x >= x1 && last_demo_mpos.x <= x2 &&
     1128      last_demo_mpos.y >= y1 && last_demo_mpos.y <= y2);
    11291129}
    11301130
     
    16861686
    16871687            help_handle_event(ev);
    1688             mousex = last_demo_mx;
    1689             mousey = last_demo_my;
     1688            mousex = last_demo_mpos.x;
     1689            mousey = last_demo_mpos.y;
    16901690
    16911691            if(ev.type == EV_MESSAGE)
Note: See TracChangeset for help on using the changeset viewer.