summaryrefslogtreecommitdiff
path: root/Constructions.cpp
diff options
context:
space:
mode:
authorPetr Mrázek2012-01-27 05:52:06 +0100
committerPetr Mrázek2012-01-27 05:52:06 +0100
commit66115070844f3bc1ae3f9142e43f7c110aa18159 (patch)
tree661a3c27bcdc105ea890e117dfb1f3790e5a0c0c /Constructions.cpp
parent92627e39cb3502812cd5a131716d3d1da8ef625a (diff)
downloadstonesense-66115070844f3bc1ae3f9142e43f7c110aa18159.tar.gz
stonesense-66115070844f3bc1ae3f9142e43f7c110aa18159.tar.bz2
stonesense-66115070844f3bc1ae3f9142e43f7c110aa18159.tar.xz
Major stonesense fixage.
Diffstat (limited to 'Constructions.cpp')
-rw-r--r--Constructions.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Constructions.cpp b/Constructions.cpp
index 96e3ca6..def01af 100644
--- a/Constructions.cpp
+++ b/Constructions.cpp
@@ -3,24 +3,24 @@
#include "Constructions.h"
#include "WorldSegment.h"
-void changeConstructionMaterials(WorldSegment* segment, vector<t_construction>* allConstructions){
+void changeConstructionMaterials(WorldSegment* segment, vector<df::construction>* allConstructions){
//find construction
int32_t i;
Block* b;
- t_construction* construct = 0;
+ df::construction* construct = 0;
i = (uint32_t) allConstructions->size();
if(i <= 0) return;
while(--i >= 0){
construct = &(*allConstructions)[i];
- b = segment->getBlock(construct->x, construct->y, construct->z);
+ b = segment->getBlock(construct->pos.x, construct->pos.y, construct->pos.z);
if( !b ) continue;
//don't assign invalid material indexes
//if(construct->mat_idx != -1){
//on second thought, invalid indices are needed.
b->material.type = construct->mat_type;
- b->material.index = construct->mat_idx;
+ b->material.index = construct->mat_index;
//}
- b->consForm = construct->form;
+ b->consForm = construct->item_type;
}
}