diff options
author | hap <happppp@users.noreply.github.com> | 2019-12-13 12:14:47 +0100 |
---|---|---|
committer | hap <happppp@users.noreply.github.com> | 2019-12-13 12:14:47 +0100 |
commit | 00a4790d5372e0b8e36bd971ee5ec4ff448263ed (patch) | |
tree | c59c58d3315bebf6fd2a1b2f13110f082790c235 | |
parent | e238b72de14f3a7f864ead9569af0bd25ba77b5b (diff) |
sensorboard: output-before-reset regression (nw)
-rw-r--r-- | src/devices/machine/sensorboard.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/devices/machine/sensorboard.cpp b/src/devices/machine/sensorboard.cpp index da479cc9203..70be6bc34c1 100644 --- a/src/devices/machine/sensorboard.cpp +++ b/src/devices/machine/sensorboard.cpp @@ -114,15 +114,6 @@ void sensorboard_device::device_start() m_custom_init_cb(1); memcpy(m_history[0], m_curstate, m_height * m_width); - for (int i = 0; i < m_maxspawn; i++) - { - // output spawn icons (done only once) - if (m_custom_output_cb.isnull()) - m_out_pui[i + 1] = i + 1; - else - m_custom_output_cb(i + 0x101, i + 1); - } - m_undotimer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(sensorboard_device::undo_tick),this)); m_sensortimer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(sensorboard_device::sensor_off),this)); cancel_sensor(); @@ -289,6 +280,15 @@ void sensorboard_device::refresh() { bool custom_out = !m_custom_output_cb.isnull(); + // output spawn icons + for (int i = 0; i < m_maxspawn; i++) + { + if (custom_out) + m_custom_output_cb(i + 0x101, i + 1); + else + m_out_pui[i + 1] = i + 1; + } + // output hand piece if (custom_out) m_custom_output_cb(0x100, m_hand); |