aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/scalpel
diff options
context:
space:
mode:
authorPaul Gilbert2015-05-20 08:28:12 -0400
committerPaul Gilbert2015-05-20 08:28:12 -0400
commit30133cef0e2a840325c1b46b106628c3cccd7d04 (patch)
tree33f2fb95e81abc5e7624fc7d0d0ae9ae51b9ed43 /engines/sherlock/scalpel
parentfe8139b57168bbb85eb1d4bb0d2c62219ee6383d (diff)
downloadscummvm-rg350-30133cef0e2a840325c1b46b106628c3cccd7d04.tar.gz
scummvm-rg350-30133cef0e2a840325c1b46b106628c3cccd7d04.tar.bz2
scummvm-rg350-30133cef0e2a840325c1b46b106628c3cccd7d04.zip
SHERLOCK: Re-add GCC_PRINTF and fix resulting GCC warnings
Diffstat (limited to 'engines/sherlock/scalpel')
-rw-r--r--engines/sherlock/scalpel/darts.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sherlock/scalpel/darts.cpp b/engines/sherlock/scalpel/darts.cpp
index 96d272fed0..de93621e2f 100644
--- a/engines/sherlock/scalpel/darts.cpp
+++ b/engines/sherlock/scalpel/darts.cpp
@@ -235,10 +235,10 @@ void Darts::showNames(int playerNum) {
if (playerNum != 0)
screen.print(Common::Point(STATUS_INFO_X + 50, STATUS_INFO_Y), PLAYER_COLOR + 3,
- _opponent.c_str());
+ "%s", _opponent.c_str());
else
screen.print(Common::Point(STATUS_INFO_X + 50, STATUS_INFO_Y), color,
- _opponent.c_str());
+ "%s", _opponent.c_str());
screen._backBuffer1.fillRect(Common::Rect(STATUS_INFO_X + 50, STATUS_INFO_Y + 10,
STATUS_INFO_X + 81, STATUS_INFO_Y + 12), color);