Prospector pretty prints base materials, fixed xgetopt instance.

develop
Petr Mrázek 2011-05-02 05:10:13 +02:00
parent 7ad83c80b8
commit 27bd19150b
1 changed files with 2 additions and 2 deletions

@ -31,7 +31,7 @@ bool parseOptions(int argc, char **argv, bool &showHidden, bool &showPlants,
char c; char c;
opterr = 0; opterr = 0;
xgetopt opt(argc, argv, "apsr"); xgetopt opt(argc, argv, "apst");
while ((c = opt()) != -1) while ((c = opt()) != -1)
{ {
switch (c) switch (c)
@ -342,7 +342,7 @@ int main(int argc, char *argv[])
std::cout << "Base materials:" << std::endl; std::cout << "Base materials:" << std::endl;
for (it = baseMats.begin(); it != baseMats.end(); ++it) for (it = baseMats.begin(); it != baseMats.end(); ++it)
{ {
std::cout << DFHack::TileMaterialString[it->first] << " : " << it->second << std::endl; std::cout << std::setw(25) << DFHack::TileMaterialString[it->first] << " : " << it->second << std::endl;
} }
std::cout << std::endl << "Layer materials:" << std::endl; std::cout << std::endl << "Layer materials:" << std::endl;