summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-07-05 17:47:10 +0000
committercelestar <celestar@openttd.org>2005-07-05 17:47:10 +0000
commitb29556e6b5c78b3700da1902ef8c8151bcf9fb41 (patch)
treedd22ea9e8f91f18c49976cb26893ccecf8479174
parent7b39e32c934abad1cc8f6fb6f6156f8233b1cafc (diff)
downloadopenttd-b29556e6b5c78b3700da1902ef8c8151bcf9fb41.tar.xz
(svn r2521) -Codechange: Removed trailing "\n"s from DEBUG statements
-rw-r--r--network_server.c2
-rw-r--r--newgrf.c2
-rw-r--r--screenshot.c4
-rw-r--r--viewport.c10
4 files changed, 9 insertions, 9 deletions
diff --git a/network_server.c b/network_server.c
index 54de0706f..99150aa8a 100644
--- a/network_server.c
+++ b/network_server.c
@@ -1059,7 +1059,7 @@ void NetworkServer_HandleChat(NetworkAction action, DestType desttype, int dest,
}
break;
default:
- DEBUG(net, 0)("[NET][Server] Received unknown destination type %d. Doing broadcast instead.\n");
+ DEBUG(net, 0)("[NET][Server] Received unknown destination type %d. Doing broadcast instead.");
/* fall-through to next case */
case DESTTYPE_BROADCAST:
FOR_ALL_CLIENTS(cs) {
diff --git a/newgrf.c b/newgrf.c
index 98a44e349..534240838 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -1813,7 +1813,7 @@ static void GRFInfo(byte *buf, int len)
_cur_grffile->grfid = grfid;
_cur_grffile->flags |= 0x0001; /* set active flag */
- DEBUG(grf, 1) ("[%s] Loaded GRFv%d set %08lx - %s:\n%s\n",
+ DEBUG(grf, 1) ("[%s] Loaded GRFv%d set %08lx - %s:\n%s",
_cur_grffile->filename, version, grfid, name, info);
}
diff --git a/screenshot.c b/screenshot.c
index 9538b9044..3c23e327b 100644
--- a/screenshot.c
+++ b/screenshot.c
@@ -147,13 +147,13 @@ static bool MakeBmpImage(const char *name, ScreenshotCallback *callb, void *user
static void PNGAPI png_my_error(png_structp png_ptr, png_const_charp message)
{
- DEBUG(misc, 0) ("ERROR(libpng): %s - %s\n", message, (char *)png_get_error_ptr(png_ptr));
+ DEBUG(misc, 0) ("ERROR(libpng): %s - %s", message, (char *)png_get_error_ptr(png_ptr));
longjmp(png_ptr->jmpbuf, 1);
}
static void PNGAPI png_my_warning(png_structp png_ptr, png_const_charp message)
{
- DEBUG(misc, 0) ("WARNING(libpng): %s - %s\n", message, (char *)png_get_error_ptr(png_ptr));
+ DEBUG(misc, 0) ("WARNING(libpng): %s - %s", message, (char *)png_get_error_ptr(png_ptr));
}
static bool MakePNGImage(const char *name, ScreenshotCallback *callb, void *userdata, uint w, uint h, int pixelformat, const Colour *palette)
diff --git a/viewport.c b/viewport.c
index 91cb9eadd..85dba5296 100644
--- a/viewport.c
+++ b/viewport.c
@@ -360,7 +360,7 @@ void DrawGroundSpriteAt(uint32 image, int32 x, int32 y, byte z)
ts = (TileSpriteToDraw*)vd->spritelist_mem;
if ((byte*)ts >= vd->eof_spritelist_mem) {
- DEBUG(misc, 0) ("Out of sprite mem\n");
+ DEBUG(misc, 0) ("Out of sprite mem");
return;
}
@@ -432,7 +432,7 @@ void AddSortableSpriteToDraw(uint32 image, int x, int y, int w, int h, byte dz,
ps = (ParentSpriteToDraw*)vd->spritelist_mem;
if ((byte*)ps >= vd->eof_spritelist_mem) {
- DEBUG(misc, 0) ("Out of sprite mem\n");
+ DEBUG(misc, 0) ("Out of sprite mem");
return;
}
if (vd->parent_list >= vd->eof_parent_list) {
@@ -442,7 +442,7 @@ void AddSortableSpriteToDraw(uint32 image, int x, int y, int w, int h, byte dz,
// parent_list somewhere below to a higher number.
// This can not really hurt you, it just gives some black
// spots on the screen ;)
- DEBUG(misc, 0) ("Out of sprite mem (parent_list)\n");
+ DEBUG(misc, 0) ("Out of sprite mem (parent_list)");
return;
}
@@ -498,7 +498,7 @@ void AddChildSpriteScreen(uint32 image, int x, int y)
cs = (ChildScreenSpriteToDraw*) vd->spritelist_mem;
if ((byte*)cs >= vd->eof_spritelist_mem) {
- DEBUG(misc,0) ("Out of sprite mem\n");
+ DEBUG(misc, 0) ("Out of sprite mem");
return;
}
@@ -524,7 +524,7 @@ void *AddStringToDraw(int x, int y, StringID string, uint32 params_1, uint32 par
ss = (StringSpriteToDraw*)vd->spritelist_mem;
if ((byte*)ss >= vd->eof_spritelist_mem) {
- DEBUG(misc, 0) ("Out of sprite mem\n");
+ DEBUG(misc, 0) ("Out of sprite mem");
return NULL;
}