| 81 | } |
| 82 | |
| 83 | void DrawPlrMsg() |
| 84 | { |
| 85 | int i; |
| 86 | DWORD x = 74; |
| 87 | DWORD y = 230; |
| 88 | DWORD width = SCREEN_WIDTH - 20; |
| 89 | _plrmsg *pMsg; |
| 90 | |
| 91 | if (chrflag || questlog) { |
| 92 | x = 394; |
| 93 | width -= 300; |
| 94 | } |
| 95 | if (invflag || sbookflag) |
| 96 | width -= 300; |
| 97 | |
| 98 | if (width < 300) |
| 99 | return; |
| 100 | |
| 101 | if (width > 620) |
| 102 | width = 620; |
| 103 | |
| 104 | pMsg = plr_msgs; |
| 105 | for (i = 0; i < 8; i++) { |
| 106 | if (pMsg->str[0]) |
| 107 | PrintPlrMsg(x, y, width, pMsg->str, text_color_from_player_num[pMsg->player]); |
| 108 | pMsg++; |
| 109 | y += 35; |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | void PrintPlrMsg(DWORD x, DWORD y, DWORD width, const char *str, BYTE col) |
| 114 | { |
no test coverage detected