summaryrefslogtreecommitdiff
path: root/Constructions.cpp
diff options
context:
space:
mode:
authorJapa2010-04-09 14:12:29 +0000
committerJapa2010-04-09 14:12:29 +0000
commit81aefc8e03ff3f647494012e18bcdc8f33f4de42 (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /Constructions.cpp
parentc3d0b7d6778af46299901d959d589d6599afa21c (diff)
downloadstonesense-81aefc8e03ff3f647494012e18bcdc8f33f4de42.tar.gz
stonesense-81aefc8e03ff3f647494012e18bcdc8f33f4de42.tar.bz2
stonesense-81aefc8e03ff3f647494012e18bcdc8f33f4de42.tar.xz
There is no trunk
it is not the code that compiles, it is you.
Diffstat (limited to 'Constructions.cpp')
-rw-r--r--Constructions.cpp56
1 files changed, 0 insertions, 56 deletions
diff --git a/Constructions.cpp b/Constructions.cpp
deleted file mode 100644
index 37be1b2..0000000
--- a/Constructions.cpp
+++ /dev/null
@@ -1,56 +0,0 @@
-#include "common.h"
-#include "SpriteMaps.h"
-#include "Constructions.h"
-#include "WorldSegment.h"
-
-void changeConstructionMaterials(WorldSegment* segment, vector<t_construction>* allConstructions){
- //find construction
- int32_t i;
- Block* b;
- t_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);
- if( !b ) continue;
- b->material=construct->material;
- }
-}
-
-
-bool IDisConstruction(int in){
- switch(in){
- case 495: //constructed pillar
- case 496: //constructed wall rd2
- case 497: //constructed wall r2d
- case 498: //constructed wall r2u
- case 499: //constructed wall ru2
- case 500: //constructed wall l2u
- case 501: //constructed wall lu2
- case 502: //constructed wall l2d
- case 503: //constructed wall ld2
- case 504: //constructed wall lrud
- case 505: //constructed wall rud
- case 506: //constructed wall lrd
- case 507: //constructed wall lru
- case 508: //constructed wall lud
- case 509: //constructed wall rd
- case 510: //constructed wall ru
- case 511: //constructed wall lu
- case 512: //constructed wall ld
- case 513: //constructed wall ud
- case 514: //constructed wall lr
-
- case 493: //constructed floor detailed
-
- case 494: //constructed fortification
-
- case ID_CNSTR_STAIR_UPDOWN:
- case ID_CNSTR_STAIR_DOWN:
- case ID_CNSTR_STAIR_UP:
- return true;
- break;
- }
- return 0;
-} \ No newline at end of file