void Map::load_masked_screen_rectangle(Torbit& src) { if (get_xl() != src.get_xl() || get_yl() != src.get_yl()) return; const int& x = screen_x; const int& y = screen_y; const int& xl = get_xl(); const int& yl = get_yl(); const bool& tx = get_torus_x(); const bool& ty = get_torus_y(); const int min_w = screen_xl; const int min_h = screen_yl; BITMAP* s = src.get_al_bitmap(); BITMAP* b = get_al_bitmap(); masked_blit(s, b, x, y, x, y, min_w, min_h); if (tx) masked_blit(s, b, x-xl, y, x-xl, y, min_w, min_h); if (ty) masked_blit(s, b, x, y-yl, x, y-yl, min_w, min_h); if (tx&&ty) masked_blit(s, b, x-xl, y-yl, x-xl, y-yl, min_w, min_h); }