Use u_at macro

This commit is contained in:
Pasi Kallinen
2022-02-23 20:28:35 +02:00
parent 2635c60280
commit 8e91320d2f
40 changed files with 126 additions and 130 deletions

View File

@@ -322,7 +322,7 @@ u_to_e(struct entity *etmp)
static void
set_entity(int x, int y, struct entity *etmp)
{
if ((x == u.ux) && (y == u.uy))
if (u_at(x, y))
u_to_e(etmp);
else if (MON_AT(x, y))
m_to_e(m_at(x, y), x, y, etmp);