Make sure can't chat out of the map

This commit is contained in:
Pasi Kallinen
2015-04-20 18:09:59 +03:00
parent 6cad21e4e8
commit bac7654a75

View File

@@ -1001,6 +1001,9 @@ dochat()
}
tx = u.ux+u.dx; ty = u.uy+u.dy;
if (!isok(tx,ty)) return (0);
mtmp = m_at(tx, ty);
if ((!mtmp || mtmp->mundetected) &&