}
if(n > 200)
- dprint("HOLY SHIT! FullTraceFraction: ", ftos(n), " total traces, ", ftos(m), " iterations\n");
+ LOG_TRACE("HOLY SHIT! FullTraceFraction: ", ftos(n), " total traces, ", ftos(m), " iterations\n");
return white / (black + white);
}
self.maxs_x = (mi_picmax.x - mi_picmin.x) / self.size.x;
self.maxs_y = (mi_picmax.y - mi_picmin.y) / self.size.y;
self.maxs_z = mi_max.z - mi_min.z;
- print("Picture mins/maxs: ", ftos(self.maxs.x), " and ", ftos(self.maxs.y), " should match\n");
+ LOG_INFO("Picture mins/maxs: ", ftos(self.maxs.x), " and ", ftos(self.maxs.y), " should match\n");
self.netname = strzone(strcat("gfx/", mi_shortname, "_radar.xpm"));
if(!(self.count & 1))
{
{
fclose(self.cnt);
- print(self.netname, " already exists, aborting (you may want to specify --force)\n");
+ LOG_INFO(self.netname, " already exists, aborting (you may want to specify --force)\n");
RadarMap_Next();
return;
}
self.cnt = fopen(self.netname, FILE_WRITE);
if(self.cnt < 0)
{
- print("Error writing ", self.netname, "\n");
+ LOG_INFO("Error writing ", self.netname, "\n");
remove(self);
radarmapper = world;
return;
}
- print("Writing to ", self.netname, "...\n");
+ LOG_INFO("Writing to ", self.netname, "...\n");
fputs(self.cnt, "/* XPM */\n");
fputs(self.cnt, "static char *RadarMap[] = {\n");
fputs(self.cnt, "/* columns rows colors chars-per-pixel */\n");
else
{
fputs(self.cnt, "\",\n");
- print(ftos(self.size.y - self.frame), " lines left\n");
+ LOG_INFO(ftos(self.size.y - self.frame), " lines left\n");
}
}
else
{
fputs(self.cnt, "\",\n");
- print(ftos(self.size.y - self.frame), " lines left\n");
+ LOG_INFO(ftos(self.size.y - self.frame), " lines left\n");
}
}
// close the file
fputs(self.cnt, "};\n");
fclose(self.cnt);
- print("Finished. Please edit data/", self.netname, " with an image editing application and place it in the TGA format in the gfx folder.\n");
+ LOG_INFO("Finished. Please edit data/", self.netname, " with an image editing application and place it in the TGA format in the gfx folder.\n");
RadarMap_Next();
}
}
if(radarmapper) // after doing the arguments, see if we successfully went forward.
{
- print("Radarmap entity spawned.\n");
+ LOG_INFO("Radarmap entity spawned.\n");
return true; // if so, don't print usage.
}
}