MoveRectToLoc

Parameters
whichRect rect
newCenterLoc location
bug

This can be used to move the rectangle outside of the map bounds, bypassing the limiting checks.

comment

Changes the minimum and maximum point of a rectangle to make it centered around the specified point. Thus it moves the rectangle to a new position.

Does nothing if either location is null or invalid.

note

See: Rect, SetRect, SetRectFromLoc, MoveRectTo

return type
nothing
Source code
native MoveRectToLoc            takes rect whichRect, location newCenterLoc returns nothing
Source
region-location.j
wc3modding.com
MoveRectToLoc