diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-07-30 19:49:36 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-07-30 19:49:36 +0200 |
| commit | aceaf88ba23480919c6921eda14a761476b417ed (patch) | |
| tree | 860f87399a5edaee466520ec86eac7d34db2e97c | |
| parent | 7a397bdb5a8c586f36f9804816d7ba9f30429843 (diff) | |
| download | muhqs-game-aceaf88ba23480919c6921eda14a761476b417ed.tar.gz muhqs-game-aceaf88ba23480919c6921eda14a761476b417ed.zip | |
use ReplaceAll instead of Replace(..., -1)
| -rw-r--r-- | go/assets/retrieve.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/go/assets/retrieve.go b/go/assets/retrieve.go index 27a06124..f892c080 100644 --- a/go/assets/retrieve.go +++ b/go/assets/retrieve.go @@ -70,7 +70,7 @@ var tiles = map[string]*ebiten.Image{} func GetTile(tile string) *ebiten.Image { img, found := tiles[tile] if !found { - url := path.Join(BASE_URL, TILE_URL_PART, strings.Replace(tile, " ", "_", -1)+".png") + url := path.Join(BASE_URL, TILE_URL_PART, strings.ReplaceAll(tile, " ", "_")+".png") img = retrieveAsset(url) tiles[tile] = img } |
