Skip to content

Commit

Permalink
Merge branch 'way_constraint_translation' of https://github.com/Physt…
Browse files Browse the repository at this point in the history
  • Loading branch information
jamespetts committed Feb 24, 2018
2 parents 10ec2d6 + bcd7e12 commit d9ee24b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions boden/wege/weg.cc
Expand Up @@ -932,7 +932,7 @@ void weg_t::info(cbuffer_t & buf, bool is_bridge) const
}
any_permissive = true;
char tmpbuf[30];
sprintf(tmpbuf, "Permissive %i", i);
sprintf(tmpbuf, " Permissive %i-%i", desc->get_waytype(), i);
buf.append(translator::translate(tmpbuf));
buf.append("\n");
}
Expand Down Expand Up @@ -962,7 +962,7 @@ void weg_t::info(cbuffer_t & buf, bool is_bridge) const
}
any_prohibitive = true;
char tmpbuf[30];
sprintf(tmpbuf, "Prohibitive %i", i);
sprintf(tmpbuf, "Prohibitive %i-%i", desc->get_waytype(), i);
buf.append(translator::translate(tmpbuf));
buf.append("\n");
}
Expand Down Expand Up @@ -1592,4 +1592,4 @@ signal_t *weg_t::get_signal(ribi_t::ribi direction_of_travel) const
return sig;
}
else return NULL;
}
}
4 changes: 2 additions & 2 deletions gui/components/gui_convoy_assembler.cc
Expand Up @@ -2291,7 +2291,7 @@ void gui_convoy_assembler_t::draw_vehicle_info_text(const scr_coord& pos)
{
n += sprintf(buf + n, "%s", translator::translate("\nMUST USE: "));
char tmpbuf[30];
sprintf(tmpbuf, "Permissive %i", i);
sprintf(tmpbuf, "Permissive %i-%i", veh_type->get_waytype(), i);
n += sprintf(buf + n, "%s", translator::translate(tmpbuf));
}
}
Expand All @@ -2311,7 +2311,7 @@ void gui_convoy_assembler_t::draw_vehicle_info_text(const scr_coord& pos)
{
n += sprintf(buf + n, "%s", translator::translate("\nMAY USE: "));
char tmpbuf[30];
sprintf(tmpbuf, "Prohibitive %i", i);
sprintf(tmpbuf, "Prohibitive %i-%i", veh_type->get_waytype(), i);
n += sprintf(buf + n, "%s", translator::translate(tmpbuf));
}
}
Expand Down
4 changes: 2 additions & 2 deletions gui/convoi_detail_t.cc
Expand Up @@ -698,7 +698,7 @@ void gui_vehicleinfo_t::draw(scr_coord offset)
char tmpbuf1[13];
sprintf(tmpbuf1, "\nMUST USE: ");
char tmpbuf[14];
sprintf(tmpbuf, "Permissive %i", i);
sprintf(tmpbuf, "Permissive %i-%i", v->get_desc()->get_waytype(), i);
buf.printf("%s %s", translator::translate(tmpbuf1), translator::translate(tmpbuf));
display_proportional_clip(pos.x + w + offset.x, pos.y + offset.y + total_height + extra_y, buf, ALIGN_LEFT, SYSCOL_TEXT, true);
extra_y += LINESPACE;
Expand Down Expand Up @@ -727,7 +727,7 @@ void gui_vehicleinfo_t::draw(scr_coord offset)
char tmpbuf1[13];
sprintf(tmpbuf1, "\nMAY USE: ");
char tmpbuf[14];
sprintf(tmpbuf, "Prohibitive %i", i);
sprintf(tmpbuf, "Prohibitive %i-%i", v->get_desc()->get_waytype(), i);
buf.printf("%s %s", translator::translate(tmpbuf1), translator::translate(tmpbuf));
display_proportional_clip(pos.x + w + offset.x, pos.y + offset.y + total_height + extra_y, buf, ALIGN_LEFT, SYSCOL_TEXT, true);
extra_y += LINESPACE;
Expand Down
2 changes: 1 addition & 1 deletion simtool.cc
Expand Up @@ -3640,7 +3640,7 @@ const char* tool_build_wayobj_t::get_tooltip(const player_t *) const
}
any_prohibitive = true;
char tmpbuf[30];
sprintf(tmpbuf, "Prohibitive %i", i);
sprintf(tmpbuf, "Prohibitive %i-%i", desc->get_waytype(), i);
n += sprintf(toolstr + n, " ");
n += sprintf(toolstr + n, translator::translate(tmpbuf));
}
Expand Down

0 comments on commit d9ee24b

Please sign in to comment.