Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
peterix committed Sep 28, 2012
2 parents 24cd34c + bd58535 commit 75df766
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions MapLoading.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,15 +601,15 @@ void ReadCellToSegment(DFHack::Core& DF, WorldSegment& segment, int CellX, int C
{
df::flow_info * eff = *iter;
assert(eff != NULL);
Block* b = segment.getBlock( eff->x, eff->y, eff->z);
Block* b = segment.getBlock( eff->pos.x, eff->pos.y, eff->pos.z);
if(!b)
{
if(segment.CoordinateInsideSegment(eff->x, eff->y, eff->z))
if(segment.CoordinateInsideSegment(eff->pos.x, eff->pos.y, eff->pos.z))
{
b = new Block(&segment);
b->x=eff->x;
b->y=eff->y;
b->z=eff->z;
b->x=eff->pos.x;
b->y=eff->pos.y;
b->z=eff->pos.z;
segment.addBlock(b);
}
else
Expand Down

0 comments on commit 75df766

Please sign in to comment.