aboutsummaryrefslogtreecommitdiff
path: root/engines/lab
diff options
context:
space:
mode:
authorStrangerke2015-12-17 19:05:02 +0100
committerWillem Jan Palenstijn2015-12-23 21:34:07 +0100
commit540173de3693eb78b07fed6a1bac8db1f3049829 (patch)
tree0d46b39b1888083191df5bc4623c65a9b5e15f82 /engines/lab
parent25509777aa1770c07ab66729c371d28c825894ea (diff)
downloadscummvm-rg350-540173de3693eb78b07fed6a1bac8db1f3049829.tar.gz
scummvm-rg350-540173de3693eb78b07fed6a1bac8db1f3049829.tar.bz2
scummvm-rg350-540173de3693eb78b07fed6a1bac8db1f3049829.zip
LAB: constify 2 variables in drawMap
Diffstat (limited to 'engines/lab')
-rw-r--r--engines/lab/map.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/lab/map.cpp b/engines/lab/map.cpp
index 78eaaf0d79..0136bf4f36 100644
--- a/engines/lab/map.cpp
+++ b/engines/lab/map.cpp
@@ -404,14 +404,14 @@ void LabEngine::drawMap(uint16 curRoom, uint16 curMsg, uint16 floorNum, bool fad
if (floorVisited(kFloorHedgeMaze))
_imgHugeMaze->drawImage(_utils->mapScaleX(524), _utils->mapScaleY(97));
} else if (floorNum == kFloorSurMaze) {
- char *sptr = (char *)_resource->getStaticText(kTextSurmazeMessage).c_str();
Common::Rect textRect = Common::Rect(_utils->mapScaleX(360), 0, _utils->mapScaleX(660), _utils->mapScaleY(450));
- _graphics->flowText(_msgFont, 0, 7, 0, true, true, true, true, textRect, sptr);
+ const char *textPtr = _resource->getStaticText(kTextSurmazeMessage).c_str();
+ _graphics->flowText(_msgFont, 0, 7, 0, true, true, true, true, textRect, textPtr);
}
if ((floorNum >= kFloorLower) && (floorNum <= kFloorCarnival)) {
- char *sptr = (char *)_resource->getStaticText(floorNum - 1).c_str();
- _graphics->flowText(_msgFont, 0, 5, 3, true, true, true, true, _utils->vgaRectScale(14, 75, 134, 97), sptr);
+ const char *textPrt = _resource->getStaticText(floorNum - 1).c_str();
+ _graphics->flowText(_msgFont, 0, 5, 3, true, true, true, true, _utils->vgaRectScale(14, 75, 134, 97), textPrt);
}
if (_rooms[curMsg]._roomMsg)