mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 07:50:45 +00:00
must right click near coast for boat option
This commit is contained in:
@@ -154,7 +154,7 @@
|
||||
* add request attack other players DONE 10/2/2024
|
||||
* Improve alliance icon DONE 10/2/2024
|
||||
* BUG: center button should be disabled select island DONE 10/2/2024
|
||||
* BUG: boat icon appears when click inland
|
||||
* BUG: boat icon appears when click inland DONE 10/2/2024
|
||||
* BUG: double tap zooms on mobile
|
||||
* Make fake humans spawn by their country
|
||||
* add emoji button
|
||||
|
||||
@@ -305,6 +305,17 @@ export class RadialMenu implements Layer {
|
||||
return
|
||||
}
|
||||
|
||||
let nearOcean = false
|
||||
for (const t of bfs(tile, and(t => t.owner() == tile.owner() && t.isLand(), dist(tile, 25)))) {
|
||||
if (t.isOceanShore()) {
|
||||
nearOcean = true
|
||||
break
|
||||
}
|
||||
}
|
||||
if (!nearOcean) {
|
||||
return
|
||||
}
|
||||
|
||||
if (myPlayerBordersOcean && otherPlayerBordersOcean) {
|
||||
const [src, dst] = sourceDstOceanShore(this.game, myPlayer, other, this.clickedCell)
|
||||
if (src != null && dst != null) {
|
||||
|
||||
Reference in New Issue
Block a user