Changeset 676 for abuse/trunk/src/dev.cpp
- Timestamp:
- May 16, 2011, 2:37:51 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/dev.cpp
r674 r676 1016 1016 if (!strcmp(fword,"reload")) 1017 1017 { 1018 if (current_level && player_list && player_list-> focus)1018 if (current_level && player_list && player_list->m_focus) 1019 1019 { 1020 1020 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; 1022 1022 1023 1023 // save the old weapon array … … 1033 1033 the_game->draw(); 1034 1034 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; 1037 1037 1038 1038 memcpy(player_list->weapons,w,total_weapons*sizeof(int32_t)); … … 2828 2828 case 'j' : 2829 2829 { 2830 if (current_level && player_list && player_list-> focus)2830 if (current_level && player_list && player_list->m_focus) 2831 2831 { 2832 2832 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; 2835 2835 do_command("center",ev); 2836 2836 the_game->need_refresh();
Note: See TracChangeset
for help on using the changeset viewer.