Digging Invaders: fixed a problem with removing constructions.

develop
expwnent 2013-01-02 22:35:05 -05:00
parent 5201870356
commit 7586e62374
1 changed files with 3 additions and 2 deletions

@ -97,7 +97,7 @@ const int64_t costWeight[] = {
//Destroy Building
2,
//Dig
100,
10000,
//DestroyConstruction
100,
};
@ -406,7 +406,8 @@ void doDiggingInvaders(color_ostream& out, void* ptr) {
df::tiletype* type2 = Maps::getTileType(pt2);
df::tiletype_shape shape1 = ENUM_ATTR(tiletype, shape, *type1);
df::tiletype_shape shape2 = ENUM_ATTR(tiletype, shape, *type2);
bool construction2 = ENUM_ATTR(tiletype, material, *type1) == df::enums::tiletype_material::CONSTRUCTION;
bool construction2 = ENUM_ATTR(tiletype, material, *type2) == df::enums::tiletype_material::CONSTRUCTION;
//out.print("shape1 = %d, shape2 = %d, ");
if ( construction2 ) {
out.print("%s, line %d. Removing construction (%d,%d,%d)\n", __FILE__, __LINE__, pt2.x,pt2.y,pt2.z);
df::job* job = new df::job();