Prevent some annoying warnings popping up everywhere

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
Gabriel Ravier 2019-09-15 10:50:46 +02:00
parent fcc1e3cc23
commit 0d833b38a8
No known key found for this signature in database
GPG key ID: 1E75F156884F3DCE

View file

@ -17,13 +17,13 @@
#define NPC_UPDATE_POSITIONS_WITH_VELOCITIES(npc) \ #define NPC_UPDATE_POSITIONS_WITH_VELOCITIES(npc) \
npc->x += npc->xm; \ npc->x += npc->xm; \
npc->y = npc->ym; npc->y = npc->ym
#define NPC_SET_RECT_FROM_LEFT_RIGHT(npc, rcLeft, rcRight) \ #define NPC_SET_RECT_FROM_LEFT_RIGHT(npc, rcLeft, rcRight) \
if (npc->direct == DIR_LEFT) \ if (npc->direct == DIR_LEFT) \
npc->rect = rcLeft[npc->ani_no]; \ npc->rect = rcLeft[npc->ani_no]; \
else \ else \
npc->rect = rcRight[npc->ani_no]; npc->rect = rcRight[npc->ani_no]
// Be careful when changing these: they're baked into the 'npc.tbl' file // Be careful when changing these: they're baked into the 'npc.tbl' file
enum NPCFlags enum NPCFlags