16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 02:09:17 +02:00

semaphore with stop signal marked on minimap, number of icons increased to 5

This commit is contained in:
milek7
2019-09-19 23:13:45 +02:00
parent 3b623c4506
commit 5d193b40ff
5 changed files with 18 additions and 7 deletions

View File

@@ -143,6 +143,11 @@ void ui::map_panel::render_map_texture(glm::mat4 transform, glm::vec2 surface_si
scene_ubs.scene_extra = glm::vec3(1.0f / (surface_size / 200.0f), 1.0f);
}
if (map::Objects.poi_dirty) {
map::Objects.poi_dirty = false;
simulation::Region->update_poi_geometry();
}
scene_ubo->update(scene_ubs);
GfxRenderer.Draw_Geometry(simulation::Region->get_map_poi_geometry());
@@ -537,7 +542,7 @@ void ui::obstacle_remove_window::render_content()
}
}
simulation::Region->update_poi_geometry();
map::Objects.poi_dirty = true;
ImGui::CloseCurrentPopup();
}