removed unused function tod_manager::get_time_of_day_of_next_turn
@Crab: once you need this function just revert the commit; however, the < in the comparison at the start should be > imo
This commit is contained in:
parent
c571778a4d
commit
c2336806ec
2 changed files with 0 additions and 22 deletions
|
@ -105,22 +105,6 @@ const time_of_day& tod_manager::get_previous_time_of_day() const
|
|||
return get_time_of_day_turn(times_, turn_ - 1, currentTime_);
|
||||
}
|
||||
|
||||
|
||||
const time_of_day& tod_manager::get_time_of_day_of_next_turn(const int side, const map_location &loc) const
|
||||
{
|
||||
int nturn = turn_;
|
||||
if (resources::controller->current_side() < side)
|
||||
{
|
||||
//that side went before current side, its next turn will be on next game turn
|
||||
nturn++;
|
||||
}
|
||||
if (loc != map_location::null_location)
|
||||
{
|
||||
return get_time_of_day(loc, nturn);
|
||||
}
|
||||
return get_time_of_day_turn(times_, nturn, currentTime_);
|
||||
}
|
||||
|
||||
const time_of_day& tod_manager::get_time_of_day(const map_location& loc, int n_turn) const
|
||||
{
|
||||
if(n_turn == 0)
|
||||
|
|
|
@ -36,12 +36,6 @@ class tod_manager : public savegame::savegame_config
|
|||
const time_of_day& get_time_of_day() const;
|
||||
const time_of_day& get_previous_time_of_day() const;
|
||||
|
||||
/**
|
||||
* Returns time of day object for the next turn of particular side
|
||||
* loc - optional location
|
||||
*/
|
||||
const time_of_day& get_time_of_day_of_next_turn(const int side, const map_location &loc = map_location::null_location) const;
|
||||
|
||||
/**
|
||||
* Returns time of day object in the turn at a location.
|
||||
* If nturn = 0 use current turn
|
||||
|
|
Loading…
Add table
Reference in a new issue