- final phase of cppcheck verbose fixes (outstanding items should be left alone)

This commit is contained in:
Mark Vejvoda 2011-09-01 18:51:43 +00:00
parent bb68106912
commit 4a5a7f010d
3 changed files with 6 additions and 6 deletions

View File

@ -107,7 +107,7 @@ RoutePlanner::RoutePlanner(World *world)
, nodeStore(NULL)
, tSearchEngine(NULL)
, tNodeStore(NULL) {
#ifdef _GAE_DEBUG_EDITION_
#ifdef DEBUG_SEARCH_TEXTURES
debug_texture_action=SHOW_PATH_ONLY;
#endif
const int &w = world->getMap()->getW();

View File

@ -523,10 +523,6 @@ void TextRenderer3DGl::internalRender(const string &text, float x, float y, boo
//assertGl();
float scaleX = Font::scaleFontValue;
float scaleY = Font::scaleFontValue;
float scaleZ = 1.0;
//int scaleWidthX = (font->getTextHandler()->Advance(renderText.c_str()) * scaleX) / 2.0;
//glTranslatef(translatePos.x + scaleWidthX, translatePos.y, translatePos.z);
glTranslatef(translatePos.x, translatePos.y, translatePos.z);
@ -544,6 +540,10 @@ void TextRenderer3DGl::internalRender(const string &text, float x, float y, boo
// specialFTGLErrorCheckWorkaround(text);
if(font->getTextHandler() != NULL) {
float scaleX = Font::scaleFontValue;
float scaleY = Font::scaleFontValue;
float scaleZ = 1.0;
glScalef(scaleX, scaleY, scaleZ);
if(text.find("\n") == renderText.npos && renderText.find("\t") == renderText.npos) {
//assertGl();

View File

@ -2320,7 +2320,7 @@ void BroadCastSocketThread::execute() {
/* get my host name */
gethostname(myhostname,100);
struct hostent*myhostent = gethostbyname(myhostname);
//struct hostent*myhostent = gethostbyname(myhostname);
// get all host IP addresses
std::vector<std::string> ipList = Socket::getLocalIPAddressList();