mirror of
https://github.com/glest/glest-source.git
synced 2025-08-20 07:01:21 +02:00
- final phase of cppcheck verbose fixes (outstanding items should be left alone)
This commit is contained in:
@@ -107,7 +107,7 @@ RoutePlanner::RoutePlanner(World *world)
|
|||||||
, nodeStore(NULL)
|
, nodeStore(NULL)
|
||||||
, tSearchEngine(NULL)
|
, tSearchEngine(NULL)
|
||||||
, tNodeStore(NULL) {
|
, tNodeStore(NULL) {
|
||||||
#ifdef _GAE_DEBUG_EDITION_
|
#ifdef DEBUG_SEARCH_TEXTURES
|
||||||
debug_texture_action=SHOW_PATH_ONLY;
|
debug_texture_action=SHOW_PATH_ONLY;
|
||||||
#endif
|
#endif
|
||||||
const int &w = world->getMap()->getW();
|
const int &w = world->getMap()->getW();
|
||||||
|
@@ -523,10 +523,6 @@ void TextRenderer3DGl::internalRender(const string &text, float x, float y, boo
|
|||||||
|
|
||||||
//assertGl();
|
//assertGl();
|
||||||
|
|
||||||
float scaleX = Font::scaleFontValue;
|
|
||||||
float scaleY = Font::scaleFontValue;
|
|
||||||
float scaleZ = 1.0;
|
|
||||||
|
|
||||||
//int scaleWidthX = (font->getTextHandler()->Advance(renderText.c_str()) * scaleX) / 2.0;
|
//int scaleWidthX = (font->getTextHandler()->Advance(renderText.c_str()) * scaleX) / 2.0;
|
||||||
//glTranslatef(translatePos.x + scaleWidthX, translatePos.y, translatePos.z);
|
//glTranslatef(translatePos.x + scaleWidthX, translatePos.y, translatePos.z);
|
||||||
glTranslatef(translatePos.x, 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);
|
// specialFTGLErrorCheckWorkaround(text);
|
||||||
|
|
||||||
if(font->getTextHandler() != NULL) {
|
if(font->getTextHandler() != NULL) {
|
||||||
|
float scaleX = Font::scaleFontValue;
|
||||||
|
float scaleY = Font::scaleFontValue;
|
||||||
|
float scaleZ = 1.0;
|
||||||
|
|
||||||
glScalef(scaleX, scaleY, scaleZ);
|
glScalef(scaleX, scaleY, scaleZ);
|
||||||
if(text.find("\n") == renderText.npos && renderText.find("\t") == renderText.npos) {
|
if(text.find("\n") == renderText.npos && renderText.find("\t") == renderText.npos) {
|
||||||
//assertGl();
|
//assertGl();
|
||||||
|
@@ -2320,7 +2320,7 @@ void BroadCastSocketThread::execute() {
|
|||||||
|
|
||||||
/* get my host name */
|
/* get my host name */
|
||||||
gethostname(myhostname,100);
|
gethostname(myhostname,100);
|
||||||
struct hostent*myhostent = gethostbyname(myhostname);
|
//struct hostent*myhostent = gethostbyname(myhostname);
|
||||||
|
|
||||||
// get all host IP addresses
|
// get all host IP addresses
|
||||||
std::vector<std::string> ipList = Socket::getLocalIPAddressList();
|
std::vector<std::string> ipList = Socket::getLocalIPAddressList();
|
||||||
|
Reference in New Issue
Block a user