aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Dußin2021-02-24 17:11:12 +0100
committerArne Dußin2021-02-24 17:11:12 +0100
commit6bc60da67ea6f79174b47309e6e340149b287d9b (patch)
treee9c913c75fabc7a0c59024ea3837f7b4155f8561
parent6e9f92921dc278ae33d1e7a5f39aab2f2663a771 (diff)
downloadgraf_karto-6bc60da67ea6f79174b47309e6e340149b287d9b.tar.gz
graf_karto-6bc60da67ea6f79174b47309e6e340149b287d9b.zip
fixup! Add some icons and coresponding draft sheetHEADmaster
-rw-r--r--src/client/map/icon_texture_manager.rs2
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,
}
};