Fix some issues with last commit

develop
Jared Adams 2012-04-16 20:43:30 -06:00
parent 7946cafc86
commit ebd21e9249
2 changed files with 9 additions and 2 deletions

@ -196,6 +196,12 @@ private:
Core *c_;
};
std::ostream &operator<<(std::ostream &stream, const Brush& brush) {
inline std::ostream &operator<<(std::ostream &stream, const Brush& brush) {
stream << brush.str();
return stream;
}
inline std::ostream &operator<<(std::ostream &stream, const Brush* brush) {
stream << brush->str();
return stream;
}

@ -325,7 +325,7 @@ void printState(color_ostream &out)
{
out << "Filter: " << filter << std::endl
<< "Paint: " << paint << std::endl
<< "Brush: " << brush->str() << std::endl;
<< "Brush: " << brush << std::endl;
}
//zilpin: These two functions were giving me compile errors in VS2008, so I cheated with the C style loop below, just to get it to build.
@ -559,6 +559,7 @@ bool processTileType(color_ostream & out, TileType &paint, std::vector<std::stri
}
else if (option == "all" || option == "a")
{
loc--;
for (; loc < end; loc++)
{
std::string param = params[loc];