diff options
author | Torbjörn Andersson | 2007-12-12 21:56:22 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2007-12-12 21:56:22 +0000 |
commit | 6589dba7f56f9ee6d883574cae831abfd27a1b39 (patch) | |
tree | 3d8d4741f43d4da4443d3e301634048edc50a72a /engines/cine | |
parent | dcf4755dc16765d7d51840f45836056a7274bbd9 (diff) | |
download | scummvm-rg350-6589dba7f56f9ee6d883574cae831abfd27a1b39.tar.gz scummvm-rg350-6589dba7f56f9ee6d883574cae831abfd27a1b39.tar.bz2 scummvm-rg350-6589dba7f56f9ee6d883574cae831abfd27a1b39.zip |
Fixed warning about casting away constness.
svn-id: r29839
Diffstat (limited to 'engines/cine')
-rw-r--r-- | engines/cine/various.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/cine/various.cpp b/engines/cine/various.cpp index e048afed93..037bb203fb 100644 --- a/engines/cine/various.cpp +++ b/engines/cine/various.cpp @@ -1961,7 +1961,7 @@ void backupOverlayPage(void) { } } -void drawMessage(char *messagePtr, int16 x, int16 y, int16 width, int16 color) { +void drawMessage(const char *messagePtr, int16 x, int16 y, int16 width, int16 color) { byte color2 = 2; byte endOfMessageReached = 0; int16 localX; @@ -2052,7 +2052,7 @@ void drawMessage(char *messagePtr, int16 x, int16 y, int16 width, int16 color) { } void drawDialogueMessage(byte msgIdx, int16 x, int16 y, int16 width, int16 color) { - char *messagePtr = (char *)messageTable[msgIdx].ptr; + const char *messagePtr = (const char *)messageTable[msgIdx].ptr; if (!messagePtr) { freeOverlay(msgIdx, 2); @@ -2069,7 +2069,7 @@ void drawDialogueMessage(byte msgIdx, int16 x, int16 y, int16 width, int16 color void drawFailureMessage(byte cmd) { byte msgIdx = cmd * 4 + g_cine->_rnd.getRandomNumber(3); - char *messagePtr = (char *)failureMessages[msgIdx]; + const char *messagePtr = failureMessages[msgIdx]; int len = strlen(messagePtr); var20 += len; |