summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Andrew Gardner <andrew-gardner@users.noreply.github.com>2010-01-15 01:26:25 +0000
committer Andrew Gardner <andrew-gardner@users.noreply.github.com>2010-01-15 01:26:25 +0000
commit6351185bd8f7dad890b7f2804695c3e8529e3b93 (patch)
treef0b98db6184e4d057a7709432fa292e16a6633ad /src
parent2a5eb70da3ba89bf1dd552437a7a77010cb65b24 (diff)
hng64 : Makes a palette similarity explicit (no whatsnew needed)
Diffstat (limited to 'src')
-rw-r--r--src/mame/video/hng64.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mame/video/hng64.c b/src/mame/video/hng64.c
index ab12bd8699e..9853d930a63 100644
--- a/src/mame/video/hng64.c
+++ b/src/mame/video/hng64.c
@@ -2053,7 +2053,7 @@ void recoverPolygonBlock(running_machine* machine, const UINT16* packet, struct
// If there's data here, you must have an explicit palette lookup.
// FIXME: This only seems to work with bbust2. There's a flag somewhere no doubt.
if (threeDPointer[1] & 0x0f00 && hng64_mcu_type == SHOOT_MCU)
- explicitPaletteValue = ((threeDPointer[1] & 0x0f00) >> 8 >> 1) * 0x100;
+ explicitPaletteValue = (threeDPointer[1] & 0x0f00) >> 8;
// Debug - Colors polygons with certain flags bright blue! ajg
//if (threeDPointer[1] & 0x00f0)
@@ -2085,6 +2085,8 @@ void recoverPolygonBlock(running_machine* machine, const UINT16* packet, struct
}
// PALETTE
+ polys[*numPolys].palOffset = 0;
+
/* FIXME: This really isn't correct - commenting out this line fixes the palette in roadedge snk intro */
/* There must be something set globally somewhere. */
if (hng64_3dregs[0x00/4] & 0x2000)
@@ -2102,7 +2104,8 @@ void recoverPolygonBlock(running_machine* machine, const UINT16* packet, struct
// This gets set when the palette value is stored in the ROM. There's gotta' be a flag for turning this on somewhere.
if (explicitPaletteValue != 0xffff)
{
- polys[*numPolys].palOffset = explicitPaletteValue;
+ // These palette methods can be unified soon.
+ polys[*numPolys].palOffset = explicitPaletteValue * 0x80;
}