Fix migrating object trying to newsym invalid location

This commit is contained in:
Pasi Kallinen
2026-04-29 15:45:12 +03:00
parent a3fdf22153
commit 0be07d2816
+2 -1
View File
@@ -2139,8 +2139,9 @@ rloco(struct obj *obj)
svd.dndest.nhx, svd.dndest.nhy))); svd.dndest.nhx, svd.dndest.nhy)));
if (flooreffects(obj, tx, ty, "fall")) { if (flooreffects(obj, tx, ty, "fall")) {
/* update old location since flooreffects() couldn't; /* update old location (if any) since flooreffects() couldn't;
unblock_point() for boulder handled by obj_extract_self() */ unblock_point() for boulder handled by obj_extract_self() */
if (!(otx == 0 && oty == 0))
newsym(otx, oty); newsym(otx, oty);
return FALSE; return FALSE;
} else if (otx == 0 && oty == 0) { } else if (otx == 0 && oty == 0) {