diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-12-13 17:10:05 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-12-28 16:04:45 +0100 |
commit | af1b22bc057519500c58e4e87b60fefdec6f8d35 (patch) | |
tree | 348a0470843cab1f684d07dcda0738fdb172e17d /src/dungeon.cc | |
parent | d10adaf65d299c3b4c2f4fa25c48b2dfabb7a0c8 (diff) |
Remove get_month_name()
Use simple numbered days instead and remove START_{DAY,YEAR} since
they are no longer used.
Diffstat (limited to 'src/dungeon.cc')
-rw-r--r-- | src/dungeon.cc | 17 |
1 files changed, 3 insertions, 14 deletions
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; } } |