From a43ebdb69e8f2fa69d5784422138214139ee1a11 Mon Sep 17 00:00:00 2001 From: Titus Tscharntke Date: Sat, 10 Nov 2012 00:01:44 +0000 Subject: [PATCH] changed way of showing the quick marker in the minimap ( x + mouseclick ) --- source/glest_game/graphics/renderer.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source/glest_game/graphics/renderer.cpp b/source/glest_game/graphics/renderer.cpp index 059409d8..61a75b57 100644 --- a/source/glest_game/graphics/renderer.cpp +++ b/source/glest_game/graphics/renderer.cpp @@ -6006,10 +6006,15 @@ void Renderer::renderHighlightedCellsOnMinimap() { if(mc->getFaction() != NULL) { color= mc->getFaction()->getTexture()->getPixmapConst()->getPixel3f(0, 0); } - float alpha = 0.49f+0.5f/(mc->getAliveCount()%15); + int lighting=(mc->getAliveCount()%15); + Vec3f myColor=Vec3f(color.x/2+.5f/lighting,color.y/2+.5f/lighting,color.z/2+.5f/lighting); + + //float alpha = 0.49f+0.5f/(mc->getAliveCount()%15); + float alpha=1.0f; + Vec2i pos=mc->getTargetPos(); if(texture!=NULL){ - renderTextureQuad((int)(pos.x*zoom.x)+pointersize, my + mh-(int)(pos.y*zoom.y), pointersize, pointersize, texture, alpha,&color); + renderTextureQuad((int)(pos.x*zoom.x)+pointersize, my + mh-(int)(pos.y*zoom.y), pointersize, pointersize, texture, alpha,&myColor); } } }