Made NPC000 use a switchcase
This commit is contained in:
parent
0f87d1ee8f
commit
56d249283d
1 changed files with 7 additions and 4 deletions
|
@ -15,12 +15,15 @@ void ActNpc000(NPCHAR *npc)
|
||||||
RECT rect[1];
|
RECT rect[1];
|
||||||
rect[0] = {0x00, 0x00, 0x10, 0x10};
|
rect[0] = {0x00, 0x00, 0x10, 0x10};
|
||||||
|
|
||||||
if (!npc->act_no)
|
switch (npc->act_no)
|
||||||
{
|
{
|
||||||
npc->act_no = 1;
|
case 0:
|
||||||
|
npc->act_no = 1;
|
||||||
|
|
||||||
if (npc->direct == 2)
|
if (npc->direct == 2)
|
||||||
npc->y += 0x2000;
|
npc->y += 0x2000;
|
||||||
|
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
npc->rect = rect[0];
|
npc->rect = rect[0];
|
||||||
|
|
Loading…
Add table
Reference in a new issue