Fix gcc warnings.
This commit is contained in:
parent
979914e20c
commit
ce26c1da78
2 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue