Did formatting for NpcAct120.cpp
This commit is contained in:
parent
9b3b7039da
commit
601e511bff
1 changed files with 34 additions and 22 deletions
|
@ -292,14 +292,17 @@ void ActNpc123(NPCHAR *npc)
|
|||
npc->xm = -0x1000;
|
||||
npc->ym = Random(-0x80, 0x80);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
npc->ym = -0x1000;
|
||||
npc->xm = Random(-0x80, 0x80);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
npc->xm = 0x1000;
|
||||
npc->ym = Random(-0x80, 0x80);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
npc->ym = 0x1000;
|
||||
npc->xm = Random(-0x80, 0x80);
|
||||
|
@ -315,14 +318,17 @@ void ActNpc123(NPCHAR *npc)
|
|||
if (npc->flag & 1)
|
||||
bBreak = TRUE;
|
||||
break;
|
||||
|
||||
case 1:
|
||||
if (npc->flag & 2)
|
||||
bBreak = TRUE;
|
||||
break;
|
||||
|
||||
case 2:
|
||||
if (npc->flag & 4)
|
||||
bBreak = TRUE;
|
||||
break;
|
||||
|
||||
case 3:
|
||||
if (npc->flag & 8)
|
||||
bBreak = TRUE;
|
||||
|
@ -377,12 +383,15 @@ void ActNpc124(NPCHAR *npc)
|
|||
case 0:
|
||||
npc->x -= 0x80;
|
||||
break;
|
||||
|
||||
case 1:
|
||||
npc->y -= 0x80;
|
||||
break;
|
||||
|
||||
case 2:
|
||||
npc->x += 0x80;
|
||||
break;
|
||||
|
||||
case 3:
|
||||
npc->y += 0x80;
|
||||
break;
|
||||
|
@ -643,12 +652,15 @@ void ActNpc128(NPCHAR *npc)
|
|||
case 0:
|
||||
npc->rect = rcLeft[npc->ani_no];
|
||||
break;
|
||||
|
||||
case 1:
|
||||
npc->rect = rcUp[npc->ani_no];
|
||||
break;
|
||||
|
||||
case 2:
|
||||
npc->rect = rcRight[npc->ani_no];
|
||||
break;
|
||||
|
||||
case 3:
|
||||
npc->rect = rcDown[npc->ani_no];
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue