Accuracy fixes for Igor
Includes an ASM-accuracy fix I somehow missed before.
This commit is contained in:
parent
cb87f05057
commit
e34f492418
1 changed files with 4 additions and 3 deletions
|
@ -991,6 +991,7 @@ void ActNpc088(NPCHAR *npc)
|
||||||
npc->act_wait = 0;
|
npc->act_wait = 0;
|
||||||
npc->xm = 3 * npc->xm / 2;
|
npc->xm = 3 * npc->xm / 2;
|
||||||
npc->damage = 2;
|
npc->damage = 2;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1081,11 +1082,11 @@ void ActNpc088(NPCHAR *npc)
|
||||||
if (++npc->act_wait > 100 && npc->act_wait % 6 == 1)
|
if (++npc->act_wait > 100 && npc->act_wait % 6 == 1)
|
||||||
{
|
{
|
||||||
if (npc->direct == 0)
|
if (npc->direct == 0)
|
||||||
deg = -120;
|
deg = 0x88;
|
||||||
else
|
else
|
||||||
deg = -8;
|
deg = 0xF8;
|
||||||
|
|
||||||
deg += (unsigned char)Random(-16, 16);
|
deg += (unsigned char)Random(-0x10, 0x10);
|
||||||
ym = 3 * GetSin(deg);
|
ym = 3 * GetSin(deg);
|
||||||
xm = 3 * GetCos(deg);
|
xm = 3 * GetCos(deg);
|
||||||
SetNpChar(11, npc->x, npc->y + 0x800, xm, ym, 0, 0, 0x100);
|
SetNpChar(11, npc->x, npc->y + 0x800, xm, ym, 0, 0, 0x100);
|
||||||
|
|
Loading…
Add table
Reference in a new issue