Fixed NPC000.
This commit is contained in:
parent
bcd02cb6cc
commit
50ca5e37a2
2 changed files with 83 additions and 79 deletions
|
@ -54,10 +54,10 @@ bool LoadEvent(char *path_event)
|
|||
if (memcmp(code, gPassPixEve, 3))
|
||||
return false;
|
||||
|
||||
//Get amount of npcs
|
||||
//Get amount of NPCs
|
||||
int count = SDL_ReadLE32(fp);
|
||||
|
||||
//Load npcs
|
||||
//Load NPCs
|
||||
memset(gNPC, 0, sizeof(gNPC));
|
||||
|
||||
int n = 170;
|
||||
|
|
|
@ -10,14 +10,18 @@
|
|||
//Null
|
||||
void ActNpc000(NPCHAR *npc)
|
||||
{
|
||||
RECT rect[1];
|
||||
rect[0] = {0x00, 0x00, 0x10, 0x10};
|
||||
|
||||
if (!npc->act_no)
|
||||
{
|
||||
npc->act_no = 1;
|
||||
|
||||
if (npc->direct == 2)
|
||||
npc->y += 0x2000;
|
||||
}
|
||||
|
||||
npc->rect = {0, 0, 16, 16};
|
||||
npc->rect = rect[0];
|
||||
}
|
||||
|
||||
//Experience
|
||||
|
|
Loading…
Add table
Reference in a new issue