File tree 1 file changed +9
-7
lines changed
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -511,16 +511,18 @@ void Minimap::drawMinimap()
511
511
driver->setMaterial (material);
512
512
driver->drawMeshBuffer (m_meshbuffer);
513
513
514
- // If round minimap, draw player marker
515
- if (!data->minimap_shape_round ) {
514
+ // Draw player marker on minimap
515
+ if (data->minimap_shape_round ) {
516
+ matrix.setRotationDegrees (core::vector3df (0 , 0 , 0 ));
517
+ } else {
516
518
matrix.setRotationDegrees (core::vector3df (0 , 0 , m_angle));
517
- material.TextureLayer [0 ].Texture = data->player_marker ;
518
-
519
- driver->setTransform (video::ETS_WORLD, matrix);
520
- driver->setMaterial (material);
521
- driver->drawMeshBuffer (m_meshbuffer);
522
519
}
523
520
521
+ material.TextureLayer [0 ].Texture = data->player_marker ;
522
+ driver->setTransform (video::ETS_WORLD, matrix);
523
+ driver->setMaterial (material);
524
+ driver->drawMeshBuffer (m_meshbuffer);
525
+
524
526
// Reset transformations
525
527
driver->setTransform (video::ETS_VIEW, oldViewMat);
526
528
driver->setTransform (video::ETS_PROJECTION, oldProjMat);
You can’t perform that action at this time.
0 commit comments