Nuke several annoying and no longer necessary debug output statements
This commit is contained in:
@@ -357,7 +357,6 @@ void cCreature::readFrom(std::istream& file) {
|
|||||||
while(file) {
|
while(file) {
|
||||||
std::string cur;
|
std::string cur;
|
||||||
getline(file, cur);
|
getline(file, cur);
|
||||||
std::cout << "Parsing line in town.txt: " << cur << std::endl;
|
|
||||||
std::istringstream line(cur);
|
std::istringstream line(cur);
|
||||||
line >> cur;
|
line >> cur;
|
||||||
if(cur == "MONSTER")
|
if(cur == "MONSTER")
|
||||||
|
|||||||
@@ -708,7 +708,6 @@ void cParty::readFrom(std::istream& file){
|
|||||||
bin.str(cur);
|
bin.str(cur);
|
||||||
while(bin) { // continue as long as no error, such as eof, occurs
|
while(bin) { // continue as long as no error, such as eof, occurs
|
||||||
getline(bin, cur);
|
getline(bin, cur);
|
||||||
std::cout << "Parsing line in party.txt: " << cur << std::endl;
|
|
||||||
std::istringstream sin(cur);
|
std::istringstream sin(cur);
|
||||||
sin >> cur;
|
sin >> cur;
|
||||||
if(cur == "AGE")
|
if(cur == "AGE")
|
||||||
|
|||||||
@@ -939,7 +939,6 @@ void cPlayer::readFrom(std::istream& file){
|
|||||||
std::fill(equip.begin(), equip.end(), false);
|
std::fill(equip.begin(), equip.end(), false);
|
||||||
while(bin) { // continue as long as no error, such as eof, occurs
|
while(bin) { // continue as long as no error, such as eof, occurs
|
||||||
getline(bin, cur);
|
getline(bin, cur);
|
||||||
std::cout << "Parsing line in pcN.txt: " << cur << std::endl;
|
|
||||||
sin.str(cur);
|
sin.str(cur);
|
||||||
sin >> cur;
|
sin >> cur;
|
||||||
if(cur == "STATUS"){
|
if(cur == "STATUS"){
|
||||||
|
|||||||
@@ -838,7 +838,6 @@ void cDialog::loadFromFile(std::string path){
|
|||||||
fname = path;
|
fname = path;
|
||||||
fs::path cPath = progDir/"data"/"dialogs"/path;
|
fs::path cPath = progDir/"data"/"dialogs"/path;
|
||||||
try{
|
try{
|
||||||
std::cout << "Loading dialog from: " << cPath << std::endl;
|
|
||||||
TiXmlBase::SetCondenseWhiteSpace(false);
|
TiXmlBase::SetCondenseWhiteSpace(false);
|
||||||
Document xml(cPath.string().c_str());
|
Document xml(cPath.string().c_str());
|
||||||
xml.LoadFile();
|
xml.LoadFile();
|
||||||
@@ -975,7 +974,6 @@ void cDialog::loadFromFile(std::string path){
|
|||||||
void cDialog::recalcRect(){
|
void cDialog::recalcRect(){
|
||||||
ctrlIter iter = controls.begin();
|
ctrlIter iter = controls.begin();
|
||||||
while(iter != controls.end()){
|
while(iter != controls.end()){
|
||||||
std::cout << typeid(*(iter->second)).name() << " \"" << iter->first << "\"\n";
|
|
||||||
rectangle frame = iter->second->getBounds();
|
rectangle frame = iter->second->getBounds();
|
||||||
if(frame.right > winRect.right)
|
if(frame.right > winRect.right)
|
||||||
winRect.right = frame.right;
|
winRect.right = frame.right;
|
||||||
|
|||||||
@@ -51,7 +51,6 @@ void init_graph_tool(){
|
|||||||
|
|
||||||
do {
|
do {
|
||||||
std::ifstream fin;
|
std::ifstream fin;
|
||||||
std::cerr << "Loading fragment shader from " << fragPath.string() << std::endl;
|
|
||||||
fin.open(fragPath.string().c_str());
|
fin.open(fragPath.string().c_str());
|
||||||
if(!fin.good()) {
|
if(!fin.good()) {
|
||||||
std::cerr << std_fmterr << ": Error loading fragment shader" << std::endl;
|
std::cerr << std_fmterr << ": Error loading fragment shader" << std::endl;
|
||||||
@@ -66,7 +65,6 @@ void init_graph_tool(){
|
|||||||
fbuf[fin.gcount()] = 0;
|
fbuf[fin.gcount()] = 0;
|
||||||
fin.close();
|
fin.close();
|
||||||
|
|
||||||
std::cerr << "Loading vertex shader from " << vertPath.string() << std::endl;
|
|
||||||
fin.open(vertPath.string().c_str());
|
fin.open(vertPath.string().c_str());
|
||||||
if(!fin.good()) {
|
if(!fin.good()) {
|
||||||
std::cerr << std_fmterr << ": Error loading vertex shader" << std::endl;
|
std::cerr << std_fmterr << ": Error loading vertex shader" << std::endl;
|
||||||
|
|||||||
@@ -60,7 +60,6 @@ namespace ResMgr {
|
|||||||
std::stack<fs::path> tmpPaths = resPaths();
|
std::stack<fs::path> tmpPaths = resPaths();
|
||||||
while(!tmpPaths.empty()) {
|
while(!tmpPaths.empty()) {
|
||||||
fs::path thisPath = tmpPaths.top()/path;
|
fs::path thisPath = tmpPaths.top()/path;
|
||||||
std::cout << "Testing " << thisPath << "...\n";
|
|
||||||
if(fs::exists(thisPath)) {
|
if(fs::exists(thisPath)) {
|
||||||
pathFound()[path] = tmpPaths.top();
|
pathFound()[path] = tmpPaths.top();
|
||||||
return thisPath;
|
return thisPath;
|
||||||
@@ -166,7 +165,6 @@ namespace ResMgr {
|
|||||||
/// @tparam type The type of resource the path applies to.
|
/// @tparam type The type of resource the path applies to.
|
||||||
/// @param path The path at which resources of this type may be found.
|
/// @param path The path at which resources of this type may be found.
|
||||||
template<typename type> void pushPath(fs::path path) {
|
template<typename type> void pushPath(fs::path path) {
|
||||||
printf("Pushing path %s in %s...\n",path.string().c_str(),__FUNCTION__);
|
|
||||||
resPool<type>::resPaths().push(path);
|
resPool<type>::resPaths().push(path);
|
||||||
if(resPool<type>::resPaths().empty()) std::cerr << "A problem occurred.\n";
|
if(resPool<type>::resPaths().empty()) std::cerr << "A problem occurred.\n";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user