Fix unseen mask

This commit is contained in:
2014-12-16 14:57:59 -05:00
parent d88ace968f
commit c4136c862a
2 changed files with 3 additions and 5 deletions

View File

@@ -139,8 +139,6 @@ RECT explode_place_rect[30];
char last_light_mask[13][13];
void apply_unseen_mask() {
// TODO: This is causing major lag and not even working properly
return;
RECT base_rect = {9,9,53,45},to_rect,big_to = {13,13,337,265};
short i,j,k,l;
bool need_bother = false;
@@ -167,7 +165,7 @@ void apply_unseen_mask() {
to_rect = base_rect;
to_rect.offset(-28 + i * 28,-36 + 36 * j);
to_rect |= big_to;
tileImage(mainPtr, to_rect, bw_pats[3], sf::BlendAlpha);
tileImage(terrain_screen_gworld, to_rect, bw_pats[3], sf::BlendAlpha);
//PaintRoundRect(&to_rect,4,4);
for(k = i - 2; k < i + 1; k++)
for(l = j - 2; l < j + 1; l++)

View File

@@ -30,7 +30,7 @@ RECT map_pat_rects[30];
RECT bw_rects[6];
tessel_ref_t bg[21];
tessel_ref_t map_pat[30];
tessel_ref_t bw_pat[6];
tessel_ref_t bw_pats[6];
sf::Texture bg_gworld;
bool use_win_graphics = false;
sf::Shader maskShader;
@@ -1196,7 +1196,7 @@ static void register_main_patterns() {
for(int i = 0; i < 30; i++) {
if(i < 21) {
if(i < 6) {
bw_pat[i] = prepareForTiling(bg_gworld, bw_rects[i]);
bw_pats[i] = prepareForTiling(bg_gworld, bw_rects[i]);
}
bg[i] = prepareForTiling(bg_gworld, bg_rects[i]);
}