diff options
| author | Arne Dußin | 2021-02-24 17:11:12 +0100 |
|---|---|---|
| committer | Arne Dußin | 2021-02-24 17:11:12 +0100 |
| commit | 6bc60da67ea6f79174b47309e6e340149b287d9b (patch) | |
| tree | e9c913c75fabc7a0c59024ea3837f7b4155f8561 /src | |
| parent | 6e9f92921dc278ae33d1e7a5f39aab2f2663a771 (diff) | |
| download | graf_karto-6bc60da67ea6f79174b47309e6e340149b287d9b.tar.gz graf_karto-6bc60da67ea6f79174b47309e6e340149b287d9b.zip | |
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/map/icon_texture_manager.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/map/icon_texture_manager.rs b/src/client/map/icon_texture_manager.rs index b64638c..b7e9c7c 100644 --- a/src/client/map/icon_texture_manager.rs +++ b/src/client/map/icon_texture_manager.rs @@ -76,7 +76,7 @@ impl IconTextureManager { from_reader(ron).expect("Could not parse icon info from reader.") } else { IconFileInfo { - anchor: Vec2::new(texture.width as f64, texture.height as f64), + anchor: Vec2::new(texture.width as f64 / 2., texture.height as f64 / 2.), pixels_per_m: ICON_DEFAULT_PPM, } }; |
