Fix gcc warnings.

This commit is contained in:
joris 2015-03-15 16:57:16 +01:00
parent 979914e20c
commit ce26c1da78
2 changed files with 1 additions and 3 deletions

View file

@ -931,8 +931,6 @@ static void AiMoveUnitInTheWay(CUnit &unit)
void AiCanNotMove(CUnit &unit)
{
const Vec2i &goalPos = unit.pathFinderData->input.GetGoalPos();
const int minrange = unit.pathFinderData->input.GetMinRange();
const int maxrange = unit.pathFinderData->input.GetMaxRange();
const int gw = unit.pathFinderData->input.GetGoalSize().x;
const int gh = unit.pathFinderData->input.GetGoalSize().y;

View file

@ -81,7 +81,7 @@ extern UStrInt GetComponent(const CUnitType &type, int index, EnumVariable e);
if (this->Text) {
text = EvalString(this->Text);
int pos;
std::string::size_type pos;
if ((pos = text.find("~|")) != std::string::npos) {
x += (label.Draw(x - font.getWidth(text.substr(0, pos)), y, text) - font.getWidth(text.substr(0, pos)));
} else if (this->Centered) {