From af1b22bc057519500c58e4e87b60fefdec6f8d35 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sun, 13 Dec 2015 17:10:05 +0100 Subject: Remove get_month_name() Use simple numbered days instead and remove START_{DAY,YEAR} since they are no longer used. --- src/dungeon.cc | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'src/dungeon.cc') diff --git a/src/dungeon.cc b/src/dungeon.cc index c4282a2d..3ec79068 100644 --- a/src/dungeon.cc +++ b/src/dungeon.cc @@ -1395,17 +1395,6 @@ static void process_world(void) } } - /* Tell a day passed */ - if (((turn + (DAY_START * 10L)) % (10L * DAY)) == 0) - { - char buf[20]; - - sprintf(buf, "%s", get_day(bst(YEAR, turn) + START_YEAR)); - cmsg_format(TERM_L_GREEN, - "Today it is %s of the %s year of the third age.", - get_month_name(bst(DAY, turn), wizard, FALSE), buf); - } - /*** Process the monsters ***/ /* Check for creature generation. */ @@ -5249,14 +5238,14 @@ void play_game(bool_ new_game) p_ptr->inside_quest = 0; /* Hack -- enter the world */ - /* Mega-hack Vampires and Spectres start in the dungeon */ + /* Mega-hack Vampires and Spectres start at midnight */ if (race_flags1_p(PR1_UNDEAD)) { - turn = (10L * DAY / 2) + (START_DAY * 10) + 1; + turn = (10L * DAY / 2) + 1; } else { - turn = (START_DAY * 10) + 1; + turn = 1; } } -- cgit v1.2.3