Display: leave get_time_of_day unimplemented in the base class

This commit is contained in:
Charles Dang 2024-08-30 16:20:43 -04:00
parent 434f5275ac
commit 5c84ffc7df
2 changed files with 1 additions and 8 deletions

View file

@ -380,12 +380,6 @@ std::string display::remove_exclusive_draw(const map_location& loc)
return id;
}
const time_of_day & display::get_time_of_day(const map_location& /*loc*/) const
{
static time_of_day tod;
return tod;
}
void display::update_tod(const time_of_day* tod_override)
{
const time_of_day* tod = tod_override;

View file

@ -661,8 +661,7 @@ private:
void draw_minimap();
public:
virtual const time_of_day& get_time_of_day(const map_location& loc = map_location::null_location()) const;
virtual const time_of_day& get_time_of_day(const map_location& loc = map_location::null_location()) const = 0;
virtual bool has_time_area() const {return false;}