Loading

Assert fails on some tile

  1. static void BuildPathAtTile(int xpos, int ypos, int zpos, TileEdge edge, PathType path_type, uint8 path_spr)
  2. {
  3.     VoxelStack *avs = _additions.GetModifyStack(xpos, ypos);
  4.  
  5.     Voxel *av = avs->GetCreate(zpos, true);
  6.     av->SetInstance(SRI_PATH);
  7.     VoxelStack *avs_origin = _additions.GetModifyStack(xpos + _tile_dxy[edge].x, xpos + _tile_dxy[edge].y);
  8.     avs = _additions.GetModifyStack(xpos, ypos);
  9.     assert(avs != avs_origin);
  10.     RemoveFence(avs, avs_origin, zpos, edge);

Version history

Revision # Author Created at
paybhppiz Anonymous 01 Nov 2014, 14:10:40 UTC Diff

Comments