mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 11:10:42 +00:00
NorthAmerica has panama canal, fixed ocean calculation for Oceania
This commit is contained in:
@@ -233,9 +233,9 @@
|
||||
* remove dash from game id DONE 12/11/2024
|
||||
* bug: transport display event when it lands DONE 12/11/2024
|
||||
* have crash print stacktrace DONE 12/11/2024
|
||||
* bug: name not updating location in spawn phase
|
||||
* make boats work on oceania
|
||||
* bug: name not updating location in spawn phase DONE 12/12/2024
|
||||
* add panama canal NA
|
||||
* make boats work on oceania
|
||||
* allow longer names and allow them to be displayed in the Rank UI not be cut
|
||||
* make boats work on lakes
|
||||
* record game winner
|
||||
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
|
Before Width: | Height: | Size: 457 KiB After Width: | Height: | Size: 451 KiB |
+1
-26111
File diff suppressed because one or more lines are too long
@@ -182,7 +182,12 @@ function packTerrain(map: Terrain[][]): Uint8Array {
|
||||
}
|
||||
|
||||
function processOcean(map: Terrain[][]) {
|
||||
const queue: Coord[] = [{ x: 0, y: 0 }];
|
||||
const queue: Coord[] = [];
|
||||
if (map[0][0].type == TerrainType.Water) {
|
||||
queue.push({ x: 0, y: 0 })
|
||||
} else {
|
||||
queue.push({ x: map.length - 1, y: map[0].length - 1 })
|
||||
}
|
||||
const visited = new Set<string>();
|
||||
|
||||
while (queue.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user