Skip to content

Commit 247592e

Browse files
committed
Put warning in tiletypes tool.
1 parent 2920741 commit 247592e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

plugins/tiletypes.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ void help( std::ostream & out, const std::string &option)
238238
<< " Special / s: set special tile information" << std::endl
239239
<< "See help [option] for more information" << std::endl;
240240
}
241-
else if (option == "shape")
241+
else if (option == "shape" || option == "s" ||option == "sh")
242242
{
243243
out << "Available shapes:" << std::endl
244244
<< " ANY" << std::endl;
@@ -247,7 +247,7 @@ void help( std::ostream & out, const std::string &option)
247247
out << " " << DFHack::TileShapeString[i] << std::endl;
248248
}
249249
}
250-
else if (option == "material")
250+
else if (option == "material"|| option == "mat" ||option == "m")
251251
{
252252
out << "Available materials:" << std::endl
253253
<< " ANY" << std::endl;
@@ -459,6 +459,7 @@ DFhackCExport command_result df_tiletypes (Core * c, vector <string> & parameter
459459
std::string brushname = "point";
460460
int width = 1, height = 1, z_levels = 1;
461461
c->con << "Welcome to the tiletype tool.\nType 'help' or '?' for a list of available commands, 'q' to quit.\nPress return after a command to confirm." << std::endl;
462+
c->con.printerr("THIS TOOL CAN BE DANGEROUS. YOU'VE BEEN WARNED.\n");
462463
while (!end)
463464
{
464465
c->con << "Filter: " << filter << std::endl

0 commit comments

Comments
 (0)