aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-08-22 12:48:08 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2025-08-22 12:48:08 +0200
commit8acdf093417ac71f6ab3cab4d9e9978005dcd792 (patch)
treeb33bfa9afd3c6fef6e30aea760631f407ae080ee
parentf23257f15efd68d45dc4b79a09b434d917713a6e (diff)
downloadmuhqs-game-8acdf093417ac71f6ab3cab4d9e9978005dcd792.tar.gz
muhqs-game-8acdf093417ac71f6ab3cab4d9e9978005dcd792.zip
remove type identifier from array initialization
-rw-r--r--go/game/map.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/go/game/map.go b/go/game/map.go
index a83f4984..691643aa 100644
--- a/go/game/map.go
+++ b/go/game/map.go
@@ -363,10 +363,10 @@ func randomMapGen(r *rand.Rand, def randomMapDef) *Map {
}
spawns := []Position{
- Position{0, 0},
- Position{def.x - 1, def.y - 1},
- Position{0, def.y - 1},
- Position{def.x - 1, 0},
+ {0, 0},
+ {def.x - 1, def.y - 1},
+ {0, def.y - 1},
+ {def.x - 1, 0},
}
// Prepare spawn tiles
@@ -448,8 +448,8 @@ func dotSymRandomMapGen(r *rand.Rand, def randomMapDef) *Map {
// prepare spawns
spawns := []Position{
- Position{len(m.Tiles[0]) - 1, def.y - 1},
- Position{len(m.Tiles[0]) - 1, 0},
+ {len(m.Tiles[0]) - 1, def.y - 1},
+ {len(m.Tiles[0]) - 1, 0},
}
for i := 2; i <= def.players; i = i + 2 {