From 277157b3e06b2deeacbdbc8bf6190de19f88169d Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Wed, 23 Oct 2024 16:09:47 +0200 Subject: more refactoring / preparation for pathfinding --- MuseumDeserializer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'MuseumDeserializer.cpp') diff --git a/MuseumDeserializer.cpp b/MuseumDeserializer.cpp index fca8d50..19fc1a6 100644 --- a/MuseumDeserializer.cpp +++ b/MuseumDeserializer.cpp @@ -17,6 +17,7 @@ void MuseumDeserializer::set_tile(TileData data) { void MuseumDeserializer::add_type(std::string type, Color color, unsigned int weight) { if (type.length() == 0) return; - TileColorFactory::register_color(type, color); + this->museum.canvas.tile_color.register_color(type, color); + // this->museum.pathfinding.weights.register_weight(type, weight); } -- cgit v1.2.3