Now puts room designations in the query blueprint

develop
Chris Dombroski 2015-01-13 16:15:54 -05:00
parent f315ee43a4
commit d0273b8eff
1 changed files with 8 additions and 0 deletions

@ -468,6 +468,13 @@ char get_tile_place(df::building* b)
} }
} }
string get_tile_query(df::building* b)
{
if (b && b->is_room)
return "r+";
return " ";
}
command_result do_transform(DFCoord start, DFCoord end, string name, phase last_phase) command_result do_transform(DFCoord start, DFCoord end, string name, phase last_phase)
{ {
ofstream dig, build, place, query; ofstream dig, build, place, query;
@ -515,6 +522,7 @@ command_result do_transform(DFCoord start, DFCoord end, string name, phase last_
df::building* b = DFHack::Buildings::findAtTile(DFCoord(x, y, z)); df::building* b = DFHack::Buildings::findAtTile(DFCoord(x, y, z));
switch (last_phase) { switch (last_phase) {
case QUERY: case QUERY:
query << get_tile_query(b) << ',';
case PLACE: case PLACE:
place << get_tile_place(b) << ','; place << get_tile_place(b) << ',';
case BUILD: case BUILD: