Merge pull request #36 from GabrielRavier/feature/improveNonNpcCharNpcFiles

Improved N files
This commit is contained in:
Clownacy 2019-06-17 15:44:31 +00:00 committed by GitHub
commit a60e9b4ff2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 78 additions and 71 deletions

View file

@ -251,9 +251,11 @@ BOOL SetBulletObject(int x, int y, int val)
case 5:
tamakazu_ari[t++] = 0;
break;
case 10:
tamakazu_ari[t++] = 1;
break;
default:
tamakazu_ari[t] = 0;
break;
@ -601,9 +603,11 @@ void DeleteNpCharCode(int code, BOOL bSmoke)
case 1:
SetDestroyNpChar(gNPC[n].x, gNPC[n].y, gNPC[n].view.back, 4);
break;
case 2:
SetDestroyNpChar(gNPC[n].x, gNPC[n].y, gNPC[n].view.back, 8);
break;
case 3:
SetDestroyNpChar(gNPC[n].x, gNPC[n].y, gNPC[n].view.back, 16);
break;

View file

@ -469,9 +469,11 @@ void LoseNpChar(NPCHAR *npc, BOOL bVanish)
case 1:
SetDestroyNpChar(npc->x, npc->y, npc->view.back, 3);
break;
case 2:
SetDestroyNpChar(npc->x, npc->y, npc->view.back, 7);
break;
case 3:
SetDestroyNpChar(npc->x, npc->y, npc->view.back, 12);
break;
@ -626,3 +628,4 @@ void HitNpCharBullet()
LoseNpChar(&gNPC[n], TRUE);
}
}