From 91e51dc510e4b6d8d6fdcaf53748d4331f801629 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Mon, 26 Sep 2011 15:27:05 +0300 Subject: AGI: Removed leftover dead code --- engines/agi/text.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'engines/agi') 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))) { -- cgit v1.2.3