spaces to tabs
This commit is contained in:
parent
b45a6fa04f
commit
1ffb0a3a4d
5 changed files with 12 additions and 12 deletions
|
@ -313,10 +313,10 @@ void show_about(display &disp, const std::string &campaign)
|
|||
max_text_width = 0;
|
||||
|
||||
{
|
||||
// clip to keep text into the frame (thus the new code block)
|
||||
clip_rect_setter set_clip_rect(screen, &text_rect);
|
||||
// clip to keep text into the frame (thus the new code block)
|
||||
clip_rect_setter set_clip_rect(screen, &text_rect);
|
||||
|
||||
const int line_spacing = 5;
|
||||
const int line_spacing = 5;
|
||||
do {
|
||||
// draw the text (with ellipsis if needed)
|
||||
// update the max_text_width for future cleaning
|
||||
|
|
|
@ -268,11 +268,11 @@ std::string component_manager::print_component_tree(component *root, const std::
|
|||
|
||||
component* component_manager::get_component(component *root, const std::string &path)
|
||||
{
|
||||
if(!path.empty()) {
|
||||
path_element tail;
|
||||
return find_component(root, path, tail);
|
||||
}
|
||||
return NULL;
|
||||
if(!path.empty()) {
|
||||
path_element tail;
|
||||
return find_component(root, path, tail);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
} //end of namespace ai
|
||||
|
|
|
@ -451,7 +451,7 @@ void copy_to_clipboard(const std::string& text, const bool)
|
|||
{
|
||||
be_clipboard->Clear();
|
||||
|
||||
BMessage *clip;
|
||||
BMessage *clip;
|
||||
if ((clip = be_clipboard->Data()))
|
||||
{
|
||||
clip->AddData("text/plain", B_MIME_TYPE, text.c_str(), text.size()+1);
|
||||
|
|
|
@ -494,7 +494,7 @@ static config unit_defense(const unit* u, const map_location& displayed_unit_hex
|
|||
const t_translation::t_list &underlyings = map.underlying_def_terrain(terrain);
|
||||
if (underlyings.size() != 1 || underlyings.front() != terrain)
|
||||
{
|
||||
bool revert = false;
|
||||
bool revert = false;
|
||||
BOOST_FOREACH(const t_translation::t_terrain &t, underlyings)
|
||||
{
|
||||
if (t == t_translation::MINUS) {
|
||||
|
@ -511,7 +511,7 @@ static config unit_defense(const unit* u, const map_location& displayed_unit_hex
|
|||
}
|
||||
}
|
||||
|
||||
tooltip << "<b>" << _("Defense: ") << span_color(color) << def << "%</span></b>";
|
||||
tooltip << "<b>" << _("Defense: ") << span_color(color) << def << "%</span></b>";
|
||||
return text_report(str.str(), tooltip.str());
|
||||
}
|
||||
REPORT_GENERATOR(unit_defense)
|
||||
|
|
|
@ -811,7 +811,7 @@ bool savegame::save_game_automatic(CVideo& video, bool ask_for_overwrite, const
|
|||
if (ask_for_overwrite){
|
||||
if (!check_overwrite(video)) {
|
||||
return save_game_interactive(video, "", gui::OK_CANCEL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return save_game(&video);
|
||||
|
|
Loading…
Add table
Reference in a new issue