From f14a9411c4968f92c1567724b08aa36bede334ec Mon Sep 17 00:00:00 2001 From: adrian17 Date: Mon, 25 Aug 2014 23:51:05 +0200 Subject: [PATCH] Fix #305, the day value wasn't increased by 1 as it should be --- src/news_item.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/news_item.c b/src/news_item.c index e2053594e5..986502d1fe 100644 --- a/src/news_item.c +++ b/src/news_item.c @@ -264,7 +264,7 @@ void news_item_add_to_queue(uint8 type, rct_string_id string_id, uint32 assoc) newsItem->assoc = assoc; newsItem->ticks = 0; newsItem->month_year = RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_MONTH_YEAR, uint16); - newsItem->day = (days_in_month[(newsItem->month_year & 7)] * RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_MONTH_TICKS, uint16)) >> 16; + newsItem->day = ((days_in_month[(newsItem->month_year & 7)] * RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_MONTH_TICKS, uint16)) >> 16) + 1; format_string((char*)0x0141EF68, string_id, (void*)0x013CE952); // overflows possible? newsItem->colour = ((char*)0x0141EF68)[0];