mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-17 19:00:50 +00:00
fix shellexecution deleting already inactive unit
This commit is contained in:
@@ -95,16 +95,12 @@ export class NameLayer implements Layer {
|
||||
render.lastBoundingCalculated = now
|
||||
if (shouldRecalc) {
|
||||
render.boundingBox = calculateBoundingBox(render.player.borderTiles());
|
||||
} else {
|
||||
console.log('skipping box calculation')
|
||||
}
|
||||
}
|
||||
if (render.isVisible && now - render.lastRenderCalc > this.refreshRate) {
|
||||
render.lastRenderCalc = Date.now() + this.rand.nextInt(0, 100)
|
||||
if (shouldRecalc) {
|
||||
this.calculateRenderInfo(render)
|
||||
} else {
|
||||
console.log('skipping name render')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user