aboutsummaryrefslogtreecommitdiff
path: root/scumm/string.cpp
diff options
context:
space:
mode:
authorMax Horn2003-05-21 16:28:02 +0000
committerMax Horn2003-05-21 16:28:02 +0000
commit8a82e59065433e679958feb864208db0bba0f354 (patch)
treeffa430f18a2a93b1eca150d6f3106e94739f2be6 /scumm/string.cpp
parent4fb4626ac99eed69c86afd94371c5784f2ede61a (diff)
downloadscummvm-rg350-8a82e59065433e679958feb864208db0bba0f354.tar.gz
scummvm-rg350-8a82e59065433e679958feb864208db0bba0f354.tar.bz2
scummvm-rg350-8a82e59065433e679958feb864208db0bba0f354.zip
constness fixes
svn-id: r7787
Diffstat (limited to 'scumm/string.cpp')
-rw-r--r--scumm/string.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/scumm/string.cpp b/scumm/string.cpp
index 28618138f7..0f09ab197f 100644
--- a/scumm/string.cpp
+++ b/scumm/string.cpp
@@ -55,7 +55,8 @@ void Scumm::unkMessage1() {
}
void Scumm::unkMessage2() {
- byte buf[100], *tmp;
+ byte buf[100];
+ const byte *tmp;
_msgPtrToAdd = buf;
tmp = _messagePtr = addMessageToStack(_messagePtr);
@@ -508,7 +509,7 @@ void Scumm::drawString(int a) {
}
}
-byte *Scumm::addMessageToStack(byte *msg) {
+const byte *Scumm::addMessageToStack(const byte *msg) {
int num, numorg;
unsigned char *ptr, chr;
@@ -835,7 +836,7 @@ void Scumm::loadLanguageBundle() {
_existLanguageFile = true;
}
-void Scumm::translateText(byte *text, byte *trans_buff) {
+void Scumm::translateText(const byte *text, byte *trans_buff) {
char name[20], tmp[500], tmp2[20], num_s[20], number[4], enc;
int32 num, l, j, k, r, pos = 0;
char *buf = _languageBuffer;