summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2019-12-18 23:30:12 +0100
committer hap <happppp@users.noreply.github.com>2019-12-18 23:30:26 +0100
commit0934035e6fda3de9d5377b0c45c2a240ef37d59c (patch)
tree5ff23aae900d1334c491f7bc2a29895565026fbc
parent9619b223fbf8aa178362c88a5d16c6713427db53 (diff)
cgang: small fix with boss spotlight (nw)
-rw-r--r--src/mame/drivers/cgang.cpp3
-rw-r--r--src/mame/layout/cgang.lay18
2 files changed, 14 insertions, 7 deletions
diff --git a/src/mame/drivers/cgang.cpp b/src/mame/drivers/cgang.cpp
index 0505770072a..68ef048069f 100644
--- a/src/mame/drivers/cgang.cpp
+++ b/src/mame/drivers/cgang.cpp
@@ -551,8 +551,7 @@ WRITE8_MEMBER(cgang_state::spot_w)
// d0-d2: ufo boss spotlights
// d3-d7: cosmo spotlights
// it strobes them for dimming
- for (int i = 0; i < 8; i++)
- m_spot->matrix(1, data);
+ m_spot->matrix(1, data);
}
WRITE8_MEMBER(cgang_state::ppi5_a_w)
diff --git a/src/mame/layout/cgang.lay b/src/mame/layout/cgang.lay
index cd13a2ea9d4..8ac1daba607 100644
--- a/src/mame/layout/cgang.lay
+++ b/src/mame/layout/cgang.lay
@@ -136,11 +136,11 @@
</element>
<element name="spotr" defstate="0">
- <rect state="0"><color red="0.2" green="0.0" blue="0.0" /></rect>
- <rect state="1"><color red="0.3" green="0.0" blue="0.0" /></rect>
- <rect state="2"><color red="0.4" green="0.0" blue="0.0" /></rect>
- <rect state="3"><color red="0.5" green="0.0" blue="0.0" /></rect>
- <rect state="4"><color red="0.6" green="0.0" blue="0.0" /></rect>
+ <rect state="0"><color red="0.22" green="0.0" blue="0.0" /></rect>
+ <rect state="1"><color red="0.29" green="0.0" blue="0.0" /></rect>
+ <rect state="2"><color red="0.36" green="0.0" blue="0.0" /></rect>
+ <rect state="3"><color red="0.43" green="0.0" blue="0.0" /></rect>
+ <rect state="4"><color red="0.5" green="0.0" blue="0.0" /></rect>
</element>
<element name="leda" defstate="0">
@@ -485,6 +485,14 @@
<element name="spot_lamp0" ref="spotr"><bounds x="31.0" y="82.5" width="8.5" height="3" /></element>
<element name="spot_lamp1" ref="spotr"><bounds x="28.166" y="82.5" width="5.666" height="3" /></element>
+ <element name="spot_lamp2" ref="spotr"><bounds x="25.9" y="82.5" width="3.4" height="3" /></element>
+ <element name="spot_lamp1" ref="spotr" blend="add"><bounds x="25.9" y="82.5" width="3.4" height="3" /></element>
+ <element ref="black"><bounds x="25.9" y="82.5" width="3.4" height="3" /><color alpha="0.5" /></element>
+
+ <element name="spot_lamp1" ref="spotr"><bounds x="32.7" y="82.5" width="3.4" height="3" /></element>
+ <element name="spot_lamp0" ref="spotr" blend="add"><bounds x="32.7" y="82.5" width="3.4" height="3" /></element>
+ <element ref="black"><bounds x="32.7" y="82.5" width="3.4" height="3" /><color alpha="0.5" /></element>
+
<repeat count="8">
<param name="x" start="23.5" increment="2" />
<param name="i" start="0" increment="1" />