summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2019-09-16 10:28:36 -0400
committer AJR <ajrhacker@users.noreply.github.com>2019-09-16 10:28:36 -0400
commit1e0f54e46ded7f2c6514121e0bf0deeaab51f0b3 (patch)
tree9c4b58139af52fb2b034833061fdcb69cf11ed58
parent85cdb4e1f91911ccb9f63d02e49bc62510604ab3 (diff)
exidy440.cpp: Ugh, more brain damage (nw)
-rw-r--r--src/mame/video/exidy440.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/video/exidy440.cpp b/src/mame/video/exidy440.cpp
index 602b1d3f479..f1173334a47 100644
--- a/src/mame/video/exidy440.cpp
+++ b/src/mame/video/exidy440.cpp
@@ -260,10 +260,10 @@ TIMER_CALLBACK_MEMBER(exidy440_state::beam_firq_callback)
}
/* round the x value to the nearest byte */
- param = (param + 1) / 2;
+ uint8_t rounded_x = (param + 1) / 2;
/* latch the x value; this convolution comes from the read routine */
- m_latched_x = (param + 3) ^ 2;
+ m_latched_x = (rounded_x + 3) ^ 2;
if (m_beam_firq_count++ < 12)
m_beam_firq_timer->adjust(m_screen->scan_period(), param);