#include <config.h>
#include "block.hpp"
-#include "msg.hpp"
+#include "log.hpp"
#include <stdexcept>
case 4: contents = CONTENT_1UP; break;
case 5: contents = CONTENT_ICEGROW; break;
default:
- msg_warning << "Invalid box contents" << std::endl;
+ log_warning << "Invalid box contents" << std::endl;
contents = CONTENT_COIN;
break;
}
} else if(contentstring == "custom") {
contents = CONTENT_CUSTOM;
} else {
- msg_warning << "Invalid box contents '" << contentstring << "'" << std::endl;
+ log_warning << "Invalid box contents '" << contentstring << "'" << std::endl;
}
} else {
if(contents == CONTENT_CUSTOM) {
throw std::runtime_error(
"Only MovingObjects are allowed inside BonusBlocks");
} else {
- msg_warning << "Invalid element '" << token << "' in bonusblock" << std::endl;
+ log_warning << "Invalid element '" << token << "' in bonusblock" << std::endl;
}
}
}