// auto-transcompiled — see *.dnd.json for canonical truth
/*if(tran == 0)
{
for(e = 1; e <= 5; e += 1)
{ 
if(colsel[e]-1 >= 0) slspr[e] = get_navi_front(e,col_options[e,colsel[e]-1]);
smspr[e] = get_navi_front(e,col_options[e,colsel[e]]);
if(colsel[e]+1 < col_options[0,e]) srspr[e] = get_navi_front(e,col_options[e,colsel[e]+1]);
}
}*/

if(!global.mbout && !ivgo)
{
ivgo = 1;
alarm[0] = 2
}


ix = view_left+(view_width/2)-(36);
iy = view_top+(view_height/2)-(48);
x = ix;
if(tran == 0) y = iy;


if(y+(trany-starty)/trantime >= trany && tran == 1) y += (trany-starty)/trantime;
else if(tran == 1)
{
y = trany;
tran = 0;
}

if(y+(starty-trany)/trantime <= starty && tran == 2) y += (starty-trany)/trantime;
else if(tran == 2)
{
y = starty;
tran = 3;
alarm[0] = 1;
}


if(cx+(cspacing/ctrantime) <= 0 && cx < 0 && ctran == 1) cx += cspacing/trantime;
else if(cx-(cspacing/ctrantime) >= 0 && cx > 0 && ctran == 1) cx -= cspacing/trantime;
else if(ctran == 1)
{
cx = 0;
ctran = 0;
}
