From e3682e2cdcb59c36792f6f9c39569e0af01088f0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 May 2015 01:58:52 +0300 Subject: Dont set global color variables before drawing text. This allow not set actual OpenGL color on each call because it useless for drawing text. --- src/being/being.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/being') diff --git a/src/being/being.cpp b/src/being/being.cpp index c11da7493..206151533 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -2560,8 +2560,8 @@ void Being::drawSpriteAt(Graphics *const graphics, Font *const font = gui->getFont(); if (font) { - graphics->setColor(userPalette->getColor(UserPalette::BEING)); - font->drawString(graphics, mName, x, y); + const Color &color = userPalette->getColor(UserPalette::BEING); + font->drawString(graphics, color, color, mName, x, y); } } } -- cgit v1.2.3-60-g2f50