Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Zhilkin Serg <ZhilkinSerg@users.noreply.github.com>
  • Loading branch information
LFKrause and ZhilkinSerg authored Oct 20, 2021
1 parent df4a6b4 commit 41e2cff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/diary.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
#include <string>
#include <list>
#include <vector>
#include <ui.h>

#include "kill_tracker.h"
#include "stats_tracker.h"
#include "achievement.h"
#include "character.h"
#include "units.h"
#include "skill.h"
#include "ui.h"

/// <summary>
/// diary page, to save current charakter progression
Expand Down Expand Up @@ -141,4 +141,4 @@ class diary
/*method for adding changes to the changelist. with the possibility to connect a desciption*/
void add_to_change_list(std::string entry, std::string desc = "");
};
#endif //CATA_SCR_DIARY_H
#endif //CATA_SRC_DIARY_H
7 changes: 3 additions & 4 deletions src/diary_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include <map>
#include <string>
#include <vector>
#include <ncurses_def.cpp>


#include "color.h"
Expand Down Expand Up @@ -90,7 +89,7 @@ namespace {
}
}
//top left corner
mvwprintw(*win, point(0, 0), " ");
mvwprintw(*win, point_zero, " ");
mvwprintw(*win, point(0, 1), ".-/|");
mvwprintw(*win, point(0, 2), "||||");
mvwprintw(*win, point(0, 3), "||||");
Expand Down Expand Up @@ -192,7 +191,7 @@ void diary::show_diary_ui(diary * c_diary)
draw_diary_border(&w_border);


center_print(w_desc, 0, c_light_gray, string_format(_("%s´s Diary"), c_diary->owner));
center_print(w_desc, 0, c_light_gray, string_format(_("%s´s Diary"), c_diary->owner));
center_print(w_info, 0, c_light_gray, string_format(_("Info")));

std::string desc = string_format(_("%s, %s, %s, %s"),
Expand Down Expand Up @@ -294,7 +293,7 @@ void diary::show_diary_ui(diary * c_diary)

}
}
//isn´t needed anymore, because of string_editor_window edition
//isn´t needed anymore, because of string_editor_window edition
void diary::edit_page_ui() {
std::string title = _("Text:");
static constexpr int max_note_length = 20000;
Expand Down

0 comments on commit 41e2cff

Please sign in to comment.