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
+3 -2
View File
@@ -2139,9 +2139,10 @@ rloco(struct obj *obj)
svd.dndest.nhx, svd.dndest.nhy)));
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() */
newsym(otx, oty);
if (!(otx == 0 && oty == 0))
newsym(otx, oty);
return FALSE;
} else if (otx == 0 && oty == 0) {
; /* fell through a trap door; no update of old loc needed */