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

game: prefix a few class members with m_ to avoid confusion.

File:
1 edited

Legend:

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

    r674 r676  
    10161016  if (!strcmp(fword,"reload"))
    10171017  {
    1018     if (current_level && player_list && player_list->focus)
     1018    if (current_level && player_list && player_list->m_focus)
    10191019    {
    10201020      edit_object=selected_object=NULL;
    1021       int32_t cx=player_list->focus->x,cy=player_list->focus->y;
     1021      int32_t cx=player_list->m_focus->x,cy=player_list->m_focus->y;
    10221022
    10231023      // save the old weapon array
     
    10331033        the_game->draw();
    10341034      player_list->reset_player();
    1035       player_list->focus->x=cx;
    1036       player_list->focus->y=cy;
     1035      player_list->m_focus->x=cx;
     1036      player_list->m_focus->y=cy;
    10371037
    10381038      memcpy(player_list->weapons,w,total_weapons*sizeof(int32_t));
     
    28282828      case 'j' :
    28292829      {
    2830         if (current_level && player_list && player_list->focus)
     2830        if (current_level && player_list && player_list->m_focus)
    28312831        {
    28322832          vec2i pos = the_game->MouseToGame(dlast);
    2833           player_list->focus->x = pos.x;
    2834           player_list->focus->y = pos.y;
     2833          player_list->m_focus->x = pos.x;
     2834          player_list->m_focus->y = pos.y;
    28352835          do_command("center",ev);
    28362836          the_game->need_refresh();
Note: See TracChangeset for help on using the changeset viewer.