mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2025-01-11 09:20:17 +01:00
Do not leave the current area when re-checking the coverage area.
This commit is contained in:
parent
003ce5035a
commit
4b92a6c722
@ -62,7 +62,7 @@ func UncoveredAreas(r *Renderer, newAreas, oldAreas []Area) []Area {
|
|||||||
// Extension in x possible?
|
// Extension in x possible?
|
||||||
if extendDirs&1 == 1 {
|
if extendDirs&1 == 1 {
|
||||||
nx := area.X2 + 1
|
nx := area.X2 + 1
|
||||||
if nx >= int16(r.width) {
|
if nx > oldArea.X2 {
|
||||||
extendDirs &= ^1
|
extendDirs &= ^1
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@ -79,7 +79,7 @@ func UncoveredAreas(r *Renderer, newAreas, oldAreas []Area) []Area {
|
|||||||
} else if extendDirs&2 == 2 {
|
} else if extendDirs&2 == 2 {
|
||||||
// Symmetric case in z direction
|
// Symmetric case in z direction
|
||||||
nz := area.Z2 + 1
|
nz := area.Z2 + 1
|
||||||
if nz >= int16(r.height) {
|
if nz > oldArea.Z2 {
|
||||||
extendDirs &= ^2
|
extendDirs &= ^2
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user