summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-20 15:25:39 +0000
committertruelight <truelight@openttd.org>2004-12-20 15:25:39 +0000
commit36ce6a7e4f3c7640e393249312c610de933ba475 (patch)
treed9da7e56d1d1eed4271e5a2187781756832f462b
parent7e61a047850cafb6a4169853e34e26f7f9a4c688 (diff)
downloadopenttd-36ce6a7e4f3c7640e393249312c610de933ba475.tar.xz
(svn r1184) -Fix: [Network] %p as chat message no longer gives funny result (tnx to
GeniusDex (that makes 10 ;)))
-rw-r--r--network.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/network.c b/network.c
index 7d77901b8..ca7a8b3b1 100644
--- a/network.c
+++ b/network.c
@@ -157,8 +157,8 @@ void CDECL NetworkTextMessage(NetworkAction action, uint16 color, bool self_send
break;
}
- IConsolePrintF(color, message);
- AddTextMessage(color, duration, message);
+ IConsolePrintF(color, "%s", message);
+ AddTextMessage(color, duration, "%s", message);
}
// Calculate the frame-lag of a client