32 if (info->year_0_hack) {
35 info->year_0_hack =
false;
57 }
else if (slowdown >= 2) {
61 }
else if (slowdown >= 1) {
69 fragment_years = info->fragment_count /
game.
calendar.calendar_fragments;
71 increase += fragment_years;
72 info->fragment_count -=
76 info->year += increase;
80 info->year_0_hack =
true;
102 if (
game.
calendar.calendar_fragment_name[frag][0] !=
'\0') {
140 static char buffer[128];
const char * calendar_text()
Produce a statically allocated textual representation of the current calendar time.
void game_advance_year()
Advance the game year.
void game_next_year(struct packet_game_info *info)
Advance the calendar in the passed game_info structure (may only be a copy of the real one).
const char * textcalfrag(int frag)
Produce a statically allocated textual representation of the given calendar fragment.
const char * textyear(int year)
Produce a statically allocated textual representation of the given year.
int get_world_bonus(enum effect_type effect_type)
Returns the effect bonus for the whole world.
#define fc_assert_ret_val(condition, val)
struct packet_game_info info
struct packet_calendar_info calendar
int fc_snprintf(char *str, size_t n, const char *format,...)
See also fc_utf8_snprintf_trunc(), fc_utf8_snprintf_rep().
bool victory_enabled(enum victory_condition_type victory)
Whether victory condition is enabled.