diff options
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/mapwindow.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/client/mapwindow.cc b/src/client/mapwindow.cc index 244056b..ffc777e 100644 --- a/src/client/mapwindow.cc +++ b/src/client/mapwindow.cc @@ -180,9 +180,21 @@ void MapWindow::set_target(const core::Entity *entity) { } if (mapwindow_target->model()) { + mapwindow_modelview->set_mode(ui::ModelView::Model); mapwindow_modelview->set_modelname(mapwindow_target->model()->name()); mapwindow_modelview->set_colors(mapwindow_target->color(), mapwindow_target->color_second()); + + } else if (mapwindow_target->type() == core::Entity::Globe) { + mapwindow_modelview->set_mode(ui::ModelView::Globe); + const core::EntityGlobe *globe = static_cast<const core::EntityGlobe *>(mapwindow_target); + mapwindow_modelview->set_colors(mapwindow_target->color(), mapwindow_target->color_second()); + mapwindow_modelview->set_globetexturename( + globe->texturename(), + globe->flag_is_set(core::Entity::Bright), + globe->coronaname() + ); } else { + mapwindow_modelview->set_mode(ui::ModelView::Model); mapwindow_modelview->set_modelname(0); } |