Skip to content

Commit 8739ce9

Browse files
committed
Fixed target coordinates in built-in HRP make_path_func
(a follow-up to 77eedc3)
1 parent 58c2f3d commit 8739ce9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

sfall/Game/tilemap.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ long __fastcall Tilemap::make_path_func(fo::GameObject* srcObject, long sourceTi
306306
if (!fo::func::anim_can_use_door(srcObject, objBlock)) continue; // block - next rotation
307307
} else {
308308
targetTile = tile; // replace the target tile (where the multihex object is located) with the current tile
309+
fo::func::tile_coord(targetTile, &targetX, &targetY); // update target coordinates
309310
}
310311
}
311312
}

0 commit comments

Comments
 (0)