unit
var
destx = 0 as num
desty = 0 as num
proc
check()
ASSERT(destx > 0 && desty > 0)
while(!block(locate(destx-1,desty-1,src.z),locate(destx+1,desty+1,src.z)).Find(src.loc)) // this is line 12, the error line
step(src,get_dir(src,locate(destx,desty,src.z)))
destx = 1; desty = 1
return 1
icon = 'test.dmi'
infantry
icon_state = "troop"
dm.dm:12:error: .: missing comma ',' or right-paren ')'
Anyone see my problem? Thanks...