Revert "Model1: Fix TGP parser crashing"

This reverts commit 128a6a2880.
This commit is contained in:
Ariane Fugmann 2016-06-04 10:33:02 +02:00
parent 128a6a2880
commit 7e99816b63

View File

@ -1303,13 +1303,12 @@ void model1_state::tgp_render(bitmap_rgb32 &bitmap, const rectangle &cliprect)
for (;;) {
int type = (list[1] << 16) | list[0];
m_glist = list;
switch (type)
switch (type & 15)
{
case 0:
list += 2;
break;
case 1:
case 0x41:
// 1 = plane 1
// 2 = ?? draw object (413d3, 17c4c, e)
// 3 = plane 2
@ -1464,7 +1463,6 @@ void model1_state::tgp_scan()
list += 2;
break;
case 1:
case 0x41:
list += 8;
break;
case 2: