fixed problem when determining maximum word length in request text
[rocksndiamonds.git] / src / tools.c
index a49d312f928244787c273c0528ee7e8e25f611cc..f89b2b250eeebc8a7d087043e05e344ce6fc2f0c 100644 (file)
@@ -4555,7 +4555,7 @@ static boolean RequestDoor(char *text, unsigned int req_state)
   int result;
   int ty;
 
-  if (maxWordLengthInString(text) > MAX_REQUEST_LINE_FONT1_LEN)
+  if (maxWordLengthInRequestString(text) > MAX_REQUEST_LINE_FONT1_LEN)
   {
     max_request_line_len = MAX_REQUEST_LINE_FONT2_LEN;
     font_nr = FONT_TEXT_1;