diff options
Diffstat (limited to 'include/Body.hpp')
-rw-r--r-- | include/Body.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/Body.hpp b/include/Body.hpp index 1a82443..99f8b1c 100644 --- a/include/Body.hpp +++ b/include/Body.hpp @@ -59,8 +59,9 @@ namespace QuickMedia { dirty_author = true; } + // |new_timestamp| is in milliseconds void set_timestamp(time_t new_timestamp) { - if(timestamp == 0 && new_timestamp == 0) + if(new_timestamp == timestamp) return; timestamp = new_timestamp; dirty_timestamp = true; @@ -90,6 +91,7 @@ namespace QuickMedia { const std::string& get_title() const { return title; } const std::string& get_description() const { return description; } const std::string& get_author() const { return author; } + // In milliseconds time_t get_timestamp() const { return timestamp; } sf::Color get_title_color() const { return title_color; } |