Cleaned up NpcAct340.cpp

This commit is contained in:
Gabriel Ravier 2019-05-16 08:25:53 +02:00
parent c247de7686
commit a312be2b4b
No known key found for this signature in database
GPG key ID: 1E75F156884F3DCE

View file

@ -78,6 +78,7 @@ void ActNpc340(NPCHAR *npc)
case 3: case 3:
npc->act_no = 200; npc->act_no = 200;
break; break;
case 4: case 4:
npc->act_no = 300; npc->act_no = 300;
break; break;
@ -810,6 +811,7 @@ void ActNpc342(NPCHAR *npc)
PlaySoundObject(26, 1); PlaySoundObject(26, 1);
} }
break; break;
case 1: case 1:
if (npc->count1 == 268) if (npc->count1 == 268)
{ {
@ -818,6 +820,7 @@ void ActNpc342(NPCHAR *npc)
PlaySoundObject(26, 1); PlaySoundObject(26, 1);
} }
break; break;
case 2: case 2:
if (npc->count1 == 396) if (npc->count1 == 396)
{ {
@ -827,6 +830,7 @@ void ActNpc342(NPCHAR *npc)
PlaySoundObject(26, 1); PlaySoundObject(26, 1);
} }
break; break;
case 3: case 3:
if (npc->count1 == 12) if (npc->count1 == 12)
{ {
@ -1500,6 +1504,7 @@ void ActNpc352(NPCHAR *npc)
case 13: case 13:
npc->surf = SURFACE_ID_LEVEL_SPRITESET_1; npc->surf = SURFACE_ID_LEVEL_SPRITESET_1;
break; break;
default: default:
break; break;
} }
@ -1512,6 +1517,7 @@ void ActNpc352(NPCHAR *npc)
case 12: case 12:
npc->view.top = 0x2000; npc->view.top = 0x2000;
break; break;
default: default:
break; break;
} }
@ -1608,12 +1614,15 @@ void ActNpc353(NPCHAR *npc)
case 0: case 0:
npc->xm = -0x600; npc->xm = -0x600;
break; break;
case 2: case 2:
npc->xm = 0x600; npc->xm = 0x600;
break; break;
case 1: case 1:
npc->ym = -0x600; npc->ym = -0x600;
break; break;
case 3: case 3:
npc->ym = 0x600; npc->ym = 0x600;
break; break;