function TerrainPathability takes nothing returns nothing
local rect r =bj_mapInitialPlayableArea
local real x = GetRectMinX(r)
local real y = GetRectMinY(r)
loop
exitwhen y >= GetRectMaxY(r)
set x = GetRectMinX(r)
loop
exitwhen x>=GetRectMaxX(r)
if GetTerrainType(x, y) == 'Oaby' then
call SetTerrainPathable(x,y,PATHING_TYPE_WALKABILITY, true)
endif
set x = x + 64
endloop
set y = y + 64
endloop
call RemoveRect(r)
set r = null
endfunction