Changeset 530 for abuse/trunk/src/game.cpp
- Timestamp:
- Apr 22, 2011, 7:32:01 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/game.cpp
r528 r530 933 933 cl = current_level->get_fgline(y)+x1; 934 934 else cl = NULL; 935 uint8_t *sl1 = draw_y < ncy1 ? 0 : screen->scan_line(draw_y)+xo; 936 937 for(x = x1, draw_x = xo; x <= x2; x++, draw_x += xinc, cl++, sl1 += xinc) 935 936 for(x = x1, draw_x = xo; x <= x2; x++, draw_x += xinc, cl++) 938 937 { 939 938 if(x < fg_w && y < fg_h) … … 946 945 if(fort_num != BLACK) 947 946 { 948 if(draw_y < ncy1 || draw_y + yinc > ncy2 || draw_x < ncx1 || draw_x + xinc > ncx2)949 947 get_fg(fort_num)->im->PutImage(screen, draw_x, draw_y); 950 else951 get_fg(fort_num)->im->put_image_offseted(screen, sl1);952 948 953 949 if(!(dev & EDIT_MODE))
Note: See TracChangeset
for help on using the changeset viewer.