Commit c21967ea authored by Denis Khachko's avatar Denis Khachko

no message

parent a9fb43bc
......@@ -3901,7 +3901,14 @@ namespace ActorRobot {
}
// TODO STENI
qDebug()<<"Before Walls";
if (getItem(CurX, CurY)) getItem(CurX, CurY)->setWalls((l_List[2]).toInt());
if (getItem(CurX, CurY))
{
getItem(CurX, CurY)->setWalls((l_List[2]).toInt());
if(CurX==0)getItem(CurX, CurY)->upWall=true;
if(CurX==SizeX-1)getItem(CurX, CurY)->downWall=true;
if(CurY==0)getItem(CurX, CurY)->leftWall=true;
if(CurY==SizeY-1)getItem(CurX, CurY)->rightWall=true;
}
qDebug()<<"After Walls";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment