aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2011-09-26 15:27:05 +0300
committerFilippos Karapetis2011-09-26 15:27:05 +0300
commit91e51dc510e4b6d8d6fdcaf53748d4331f801629 (patch)
treecf1d78443ec9bbba9c5069dbbba5d79e49fe9919 /engines
parent420c9f5550aedd89779daeb6c3d8397dc6107720 (diff)
downloadscummvm-rg350-91e51dc510e4b6d8d6fdcaf53748d4331f801629.tar.gz
scummvm-rg350-91e51dc510e4b6d8d6fdcaf53748d4331f801629.tar.bz2
scummvm-rg350-91e51dc510e4b6d8d6fdcaf53748d4331f801629.zip
AGI: Removed leftover dead code
Diffstat (limited to 'engines')
-rw-r--r--engines/agi/text.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/agi/text.cpp b/engines/agi/text.cpp
index 2a159b5d03..502db4bdba 100644
--- a/engines/agi/text.cpp
+++ b/engines/agi/text.cpp
@@ -62,7 +62,10 @@ void AgiEngine::printText2(int l, const char *msg, int foff, int xoff, int yoff,
for (m = (const unsigned char *)msg, x1 = y1 = 0; *m; m++) {
- if (*m >= 0x20 || *m == 1 || *m == 2 || *m == 3) {
+ // Note: there were extra checks for *m being a cursor character
+ // here (1, 2 or 3), which have been removed, as the cursor
+ // character is no longer printed via this function.
+ if (*m >= 0x20) {
int ypos = (y1 * CHAR_LINES) + yoff;
if ((x1 != (len - 1) || x1 == 39) && (ypos <= (GFX_HEIGHT - CHAR_LINES))) {