Free Hero Mesh

Check-in [7eae9b600e]
Login
This is a mirror of the main repository for Free Hero Mesh. New tickets and changes will not be accepted at this mirror.
Overview
Comment:Display invisible objects in editor
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 7eae9b600eb124b60a5809be5557d8138a2e6660
User & Date: user on 2018-10-26 18:17:15
Other Links: manifest | tags
Context
2018-10-28
18:51
Start implementing class/image selection menu check-in: 68e715091a user: user tags: trunk
2018-10-26
18:17
Display invisible objects in editor check-in: 7eae9b600e user: user tags: trunk
08:12
Implement scrollbars check-in: 633696a6f5 user: user tags: trunk
Changes

Modified picture.c from [ffd397fc76] to [0cf3fc6eed].

96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
  Uint32 o;
  Class*c;
  SDL_Rect dst={x,y,picture_size,picture_size};
  if(x<1 || x>64 || y<1 || y>64) return;
  SDL_FillRect(screen,&dst,back_color);
  o=playfield[y*64+x-65];
  while(o!=VOIDLINK) {
    if(!(objects[o]->oflags&OF_INVISIBLE)) {
      c=classes[objects[o]->class];
      if(objects[o]->image<c->nimages)
       draw_picture((x-1)*picture_size+left_margin,(y-1)*picture_size,c->images[objects[o]->image]&0x7FFF);
    }
    o=objects[o]->up;
  }
}







|







96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
  Uint32 o;
  Class*c;
  SDL_Rect dst={x,y,picture_size,picture_size};
  if(x<1 || x>64 || y<1 || y>64) return;
  SDL_FillRect(screen,&dst,back_color);
  o=playfield[y*64+x-65];
  while(o!=VOIDLINK) {
    if(main_options['e'] || !(objects[o]->oflags&OF_INVISIBLE)) {
      c=classes[objects[o]->class];
      if(objects[o]->image<c->nimages)
       draw_picture((x-1)*picture_size+left_margin,(y-1)*picture_size,c->images[objects[o]->image]&0x7FFF);
    }
    o=objects[o]->up;
  }
}