summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/cgang.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/cgang.cpp')
-rw-r--r--src/mame/drivers/cgang.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/cgang.cpp b/src/mame/drivers/cgang.cpp
index 2c92c1d111d..20caf5eebd6 100644
--- a/src/mame/drivers/cgang.cpp
+++ b/src/mame/drivers/cgang.cpp
@@ -352,7 +352,7 @@ void cgang_state::refresh_motor_output()
m_en_count[i] = int((m_en_pos[i] / float(CG_MOTOR_LIMIT)) * 100.0 + 0.5);
}
- m_door_count = int((m_door_motor_pos / float(DOOR_MOTOR_LIMIT)) * 100.0 + 0.5);
+ m_door_count = (m_conf->read() & 1) ? int((m_door_motor_pos / float(DOOR_MOTOR_LIMIT)) * 100.0 + 0.5) : 0;
}