Changeset 533 for abuse/trunk/src/game.cpp
- Timestamp:
- Apr 22, 2011, 7:32:13 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/game.cpp
r530 r533 564 564 } 565 565 566 void Game::put_block_fg(int x, int y, trans_image *im)566 void Game::put_block_fg(int x, int y, TImage *im) 567 567 { 568 568 for(view *f = first_view; f; f = f->next) … … 576 576 screen->GetClip(cx1, cy1, cx2, cy2); 577 577 screen->SetClip(viewx1, viewy1, viewx2 + 1, viewy2 + 1); 578 im->PutImage(screen, (x - xoff / ftile_width())*ftile_width()+viewx1 - xoff % ftile_width(),579 (y - yoff / ftile_height())*ftile_height()+viewy1 - yoff % ftile_height()) ;578 im->PutImage(screen, vec2i((x - xoff / ftile_width())*ftile_width()+viewx1 - xoff % ftile_width(), 579 (y - yoff / ftile_height())*ftile_height()+viewy1 - yoff % ftile_height())); 580 580 screen->SetClip(cx1, cy1, cx2, cy2); 581 581 } … … 945 945 if(fort_num != BLACK) 946 946 { 947 get_fg(fort_num)->im->PutImage(screen, draw_x, draw_y);947 get_fg(fort_num)->im->PutImage(screen, vec2i(draw_x, draw_y)); 948 948 949 949 if(!(dev & EDIT_MODE)) … … 987 987 { 988 988 if(dev & DRAW_BG_LAYER) 989 get_fg(fort_num)->im->PutImage(screen, draw_x, draw_y);989 get_fg(fort_num)->im->PutImage(screen, vec2i(draw_x, draw_y)); 990 990 else 991 get_fg(fort_num)->im->PutFilled(screen, draw_x, draw_y, 0);991 get_fg(fort_num)->im->PutFilled(screen, vec2i(draw_x, draw_y), 0); 992 992 993 993 if(!(dev & EDIT_MODE))
Note: See TracChangeset
for help on using the changeset viewer.