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/demo.cpp

    r657 r658  
    2929
    3030demo_manager demo_man;
    31 int last_demo_mx,last_demo_my,last_demo_mbut;
     31vec2i last_demo_mpos;
     32int last_demo_mbut;
    3233extern base_memory_struct *base;   // points to shm_addr
    3334extern int idle_ticks;
     
    5455  }
    5556
    56   last_demo_mx=ev.mouse_move.x;
    57   last_demo_my=ev.mouse_move.y;
    58   last_demo_mbut=ev.mouse_button;
     57  last_demo_mpos = ev.mouse_move;
     58  last_demo_mbut = ev.mouse_button;
    5959  idle_ticks=0;
    6060}
     
    146146  for (; v; v=v->next) { if (v->focus) v->reset_player(); }
    147147
    148   last_demo_mx=last_demo_my=last_demo_mbut=0;
     148  last_demo_mpos = vec2i(0, 0);
     149  last_demo_mbut = 0;
    149150  current_level->set_tick_counter(0);
    150151
Note: See TracChangeset for help on using the changeset viewer.