From 46af74afdfc4735a47db4ccea6263932e118b198 Mon Sep 17 00:00:00 2001 From: cracyc Date: Sat, 27 Jan 2018 21:04:54 -0600 Subject: fmtowns: make the clock work in jan (nw) --- src/mame/drivers/fmtowns.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mame/drivers/fmtowns.cpp b/src/mame/drivers/fmtowns.cpp index d7a55505e6f..bba14c814a7 100644 --- a/src/mame/drivers/fmtowns.cpp +++ b/src/mame/drivers/fmtowns.cpp @@ -288,8 +288,8 @@ void towns_state::init_rtc() m_towns_rtc_reg[7] = systm.local_time.mday % 10; m_towns_rtc_reg[8] = systm.local_time.mday / 10; // month - m_towns_rtc_reg[9] = systm.local_time.month % 10; - m_towns_rtc_reg[10] = systm.local_time.month / 10; + m_towns_rtc_reg[9] = (systm.local_time.month + 1) % 10; + m_towns_rtc_reg[10] = (systm.local_time.month + 1) / 10; // year m_towns_rtc_reg[11] = (systm.local_time.year - 2000) % 10; m_towns_rtc_reg[12] = (systm.local_time.year - 2000) / 10; -- cgit v1.2.3