()
| 421 | * ================ |
| 422 | */ |
| 423 | static void DrawNotify() { |
| 424 | int x, v; |
| 425 | int text; |
| 426 | int i; |
| 427 | int time; |
| 428 | String s; |
| 429 | int skip; |
| 430 | |
| 431 | v = 0; |
| 432 | for (i = ClientGlobals.con.current - NUM_CON_TIMES + 1; i <= ClientGlobals.con.current; i++) { |
| 433 | if (i < 0) |
| 434 | continue; |
| 435 | |
| 436 | time = (int) ClientGlobals.con.times[i % NUM_CON_TIMES]; |
| 437 | if (time == 0) |
| 438 | continue; |
| 439 | |
| 440 | time = (int) (ClientGlobals.cls.realtime - time); |
| 441 | if (time > ClientGlobals.con_notifytime.value * 1000) |
| 442 | continue; |
| 443 | |
| 444 | text = (i % ClientGlobals.con.totallines) * ClientGlobals.con.linewidth; |
| 445 | |
| 446 | for (x = 0; x < ClientGlobals.con.linewidth; x++) |
| 447 | ClientGlobals.re.DrawChar((x + 1) << 3, v, ClientGlobals.con.text[text + x]); |
| 448 | |
| 449 | v += 8; |
| 450 | } |
| 451 | |
| 452 | if (ClientGlobals.cls.key_dest == key_message) { |
| 453 | if (ClientGlobals.chat_team) { |
| 454 | DrawString(8, v, "say_team:"); |
| 455 | skip = 11; |
| 456 | } else { |
| 457 | DrawString(8, v, "say:"); |
| 458 | skip = 5; |
| 459 | } |
| 460 | |
| 461 | s = ClientGlobals.chat_buffer; |
| 462 | if (ClientGlobals.chat_bufferlen > (ClientGlobals.viddef.getWidth() >> 3) - (skip + 1)) |
| 463 | //s = s.substring(chat_bufferlen |
| 464 | // - ((viddef.getWidth() >> 3) - (skip + 1))); |
| 465 | |
| 466 | // sfranzyshen -start |
| 467 | s = s.substring(ClientGlobals.chat_bufferlen - ((ClientGlobals.viddef.getWidth() >> 3) - (skip + 1))); |
| 468 | |
| 469 | for (x = 0; x < s.length(); x++) { |
| 470 | if (ClientGlobals.chat_backedit > 0 && ClientGlobals.chat_backedit == ClientGlobals.chat_buffer.length() -x && ((int)(ClientGlobals.cls.realtime>>8)&1) !=0) { |
| 471 | ClientGlobals.re.DrawChar((x + skip) << 3, v, (char)11); |
| 472 | } else { |
| 473 | ClientGlobals.re.DrawChar((x + skip) << 3, v, s.charAt(x)); |
| 474 | } |
| 475 | } |
| 476 | |
| 477 | if (ClientGlobals.chat_backedit == 0) |
| 478 | ClientGlobals.re.DrawChar((x + skip) << 3, v, (int) (10 + ((ClientGlobals.cls.realtime >> 8) & 1))); |
| 479 | // sfranzyshen -stop |
| 480 |
no test coverage detected