mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-01-06 02:56:41 +00:00
Slight changes to water fill logic
This commit is contained in:
parent
2dadbdb905
commit
c0efcbef71
|
@ -440,7 +440,14 @@ impl Map {
|
||||||
bounds,
|
bounds,
|
||||||
color_idx,
|
color_idx,
|
||||||
));
|
));
|
||||||
|
if x == max_x - 1 {
|
||||||
|
length = 1;
|
||||||
|
let attr_up =
|
||||||
|
if rect.top > 0 { self.get_attribute(x as usize + 1, line_up as usize) } else { 0x41 };
|
||||||
|
make_water_line = !SOLID_TILES.contains(&attr_up) && !WATER_TILES.contains(&attr_up);
|
||||||
|
} else {
|
||||||
length = 0;
|
length = 0;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
length = 0;
|
length = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue